11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ciif (typeof require === 'undefined') { 31cb0ef41Sopenharmony_ci console.log('1..0 # Skipped: Not being run as CommonJS'); 41cb0ef41Sopenharmony_ci process.exit(0); 51cb0ef41Sopenharmony_ci} 61cb0ef41Sopenharmony_ci 71cb0ef41Sopenharmony_ciconst path = require('path'); 81cb0ef41Sopenharmony_ciconst { Worker } = require('worker_threads'); 91cb0ef41Sopenharmony_ci 101cb0ef41Sopenharmony_cinew Worker(path.resolve(process.cwd(), process.argv[2])) 111cb0ef41Sopenharmony_ci .on('exit', (code) => process.exitCode = code); 12