fix(launcher): make dumpio and pipe options work together (#4727)

Don't ignore stdout and stderr when using pipe for remote debugging and dumpio is true. In that case puppeteer process connects to the stdout/stderr streams of the child process and it will not hang.
This commit is contained in:
Yury Semikhatsky
2019-07-18 16:42:11 -07:00
committed by Andrey Lushnikov
parent 3982a603cc
commit 2abaac10aa
3 changed files with 18 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
const [, , puppeteerRoot, options] = process.argv;
const browser = await require(puppeteerRoot).launch(JSON.parse(options));
const page = await browser.newPage();
await page.evaluate(() => console.error('message from dumpio'));
await page.close();
await browser.close();
})();