mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
85898e0aca
This is used to allow people to run polyfills. Co-Authored-By: Anna Henningsen <github@addaleax.net> PR-URL: https://github.com/nodejs/node/pull/28940 Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
4 lines
112 B
JavaScript
4 lines
112 B
JavaScript
'use strict';
|
|
const {Worker} = require('worker_threads');
|
|
new Worker(process.argv[2]).on('exit', process.exit);
|