Skip to content

Commit

Permalink
Add executable arguments to spawn in win32
Browse files Browse the repository at this point in the history
Reapply #611 on release branch
  • Loading branch information
shadowspawn committed Jun 24, 2019
1 parent b99bcb1 commit cc24efd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,8 @@ Command.prototype.executeSubCommand = function(argv, args, unknown) {
}
} else {
args.unshift(bin);
// add executable arguments to spawn
args = (process.execArgv || []).concat(args);
proc = spawn(process.execPath, args, { stdio: 'inherit' });
}

Expand Down

0 comments on commit cc24efd

Please sign in to comment.