summaryrefslogtreecommitdiff
path: root/doc/api/worker_threads.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/worker_threads.md')
-rw-r--r--doc/api/worker_threads.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md
index 05cafa9cb1..dbf85f9edd 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