mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
12 lines
310 B
JavaScript
12 lines
310 B
JavaScript
|
'use strict';
|
||
|
if (typeof require === 'undefined') {
|
||
|
console.log('1..0 # Skipped: Not being run as CommonJS');
|
||
|
process.exit(0);
|
||
|
}
|
||
|
|
||
|
const path = require('path');
|
||
|
const { Worker } = require('worker');
|
||
|
|
||
|
new Worker(path.resolve(process.cwd(), process.argv[2]))
|
||
|
.on('exit', (code) => process.exitCode = code);
|