From cc24efd6fe88b5d45ad829497bd1494467574769 Mon Sep 17 00:00:00 2001 From: John Gee Date: Mon, 24 Jun 2019 20:47:42 +1200 Subject: [PATCH] Add executable arguments to spawn in win32 Reapply #611 on release branch --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 5380a4a58..649a9dd10 100644 --- a/index.js +++ b/index.js @@ -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' }); }