diff options
Diffstat (limited to 'src/js/node/child_process.js')
-rw-r--r-- | src/js/node/child_process.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/js/node/child_process.js b/src/js/node/child_process.js index 9da15389f..c46a50bc0 100644 --- a/src/js/node/child_process.js +++ b/src/js/node/child_process.js @@ -738,19 +738,19 @@ function fork(modulePath, args = [], options) { validateArgumentNullCheck(options.execPath, "options.execPath"); // Prepare arguments for fork: - execArgv = options.execArgv || process.execArgv; - validateArgumentsNullCheck(execArgv, "options.execArgv"); - - if (execArgv === process.execArgv && process._eval != null) { - const index = ArrayPrototypeLastIndexOf.call(execArgv, process._eval); - if (index > 0) { - // Remove the -e switch to avoid fork bombing ourselves. - execArgv = ArrayPrototypeSlice.call(execArgv); - ArrayPrototypeSplice.call(execArgv, index - 1, 2); - } - } + // execArgv = options.execArgv || process.execArgv; + // validateArgumentsNullCheck(execArgv, "options.execArgv"); + + // if (execArgv === process.execArgv && process._eval != null) { + // const index = ArrayPrototypeLastIndexOf.call(execArgv, process._eval); + // if (index > 0) { + // // Remove the -e switch to avoid fork bombing ourselves. + // execArgv = ArrayPrototypeSlice.call(execArgv); + // ArrayPrototypeSplice.call(execArgv, index - 1, 2); + // } + // } - args = [...execArgv, modulePath, ...args]; + args = [/*...execArgv,*/ modulePath, ...args]; if (typeof options.stdio === "string") { options.stdio = stdioStringToArray(options.stdio, "ipc"); |