Skip to content
Myr

fix process.execArg not exists in old version

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by zhiyelee · committed by zhiyelee · parent 7b023b1 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:index.js+1 added-1 removed
513 unmodified lines
514 if (process.platform !== 'win32') {515 if (isExplicitJS) {516 args.unshift(localBin);517 // add executable arguments to spawn518 args = process.execArgv.concat(args);518 args = (process.execArgv || []).concat(args);519520 proc = spawn('node', args, { stdio: 'inherit', customFds: [0, 1, 2] });521 } else {522 proc = spawn(bin, args, { stdio: 'inherit', customFds: [0, 1, 2] });
591 unmodified lines