diff --git a/docs/tutorial/multithreading.md b/docs/tutorial/multithreading.md index 2bf0a5645e5a..b0d298e57e2a 100644 --- a/docs/tutorial/multithreading.md +++ b/docs/tutorial/multithreading.md @@ -44,7 +44,7 @@ loads no native modules after the Web Workers get started. process.dlopen = () => { throw new Error('Load native module is not safe') } -new Worker('script.js') +let worker = new Worker('script.js') ``` [web-workers]: https://developer.mozilla.org/en/docs/Web/API/Web_Workers_API/Using_web_workers