Fixes: https://github.com/nodejs/node/issues/56343 PR-URL: https://github.com/nodejs/node/pull/56759 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
3 lines
105 B
JavaScript
3 lines
105 B
JavaScript
const { Worker } = require('worker_threads');
|
|
|
|
new Worker(__dirname + '/worker.js', { type: 'module' });
|