diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md index 05cafa9cb178e7..dbf85f9edd5082 100644 --- a/doc/api/worker_threads.md +++ b/doc/api/worker_threads.md @@ -25,7 +25,7 @@ const { } = require('worker_threads'); if (isMainThread) { - module.exports = async function parseJSAsync(script) { + module.exports = function parseJSAsync(script) { return new Promise((resolve, reject) => { const worker = new Worker(__filename, { workerData: script