()
| 6 | } = require('v8').startupSnapshot; |
| 7 | |
| 8 | function spawn() { |
| 9 | const { spawnSync, execFileSync, execSync } = require('child_process'); |
| 10 | spawnSync(process.execPath, [ __filename, 'spawnSync' ], { stdio: 'inherit' }); |
| 11 | if (!process.env.DIRNAME_CONTAINS_SHELL_UNSAFE_CHARS) |
| 12 | execSync(`"${process.execPath}" "${__filename}" "execSync"`, { stdio: 'inherit' }); |
| 13 | execFileSync(process.execPath, [ __filename, 'execFileSync' ], { stdio: 'inherit' }); |
| 14 | } |
| 15 | |
| 16 | if (process.argv[2] !== undefined) { |
| 17 | console.log('From child process', process.argv[2]); |
no test coverage detected