diff --git a/lib/Launcher.js b/lib/Launcher.js index a5a9f18681e..290e2158aea 100644 --- a/lib/Launcher.js +++ b/lib/Launcher.js @@ -111,9 +111,7 @@ class Launcher { chromeArguments.push(...options.args); const usePipe = chromeArguments.includes('--remote-debugging-pipe'); - const stdio = ['pipe', 'pipe', 'pipe']; - if (usePipe) - stdio.push('pipe', 'pipe'); + const stdio = usePipe ? ['ignore', 'ignore', 'ignore', 'pipe', 'pipe'] : ['pipe', 'pipe', 'pipe']; const chromeProcess = childProcess.spawn( chromeExecutable, chromeArguments,