blob: a16cf4d633d6883ff090b4dfc067f2c2c59f8525 (
plain)
1
2
3
4
5
6
7
8
9
10
|
(async () => {
const [, , puppeteerRoot, options] = process.argv;
const browser = await require(puppeteerRoot).launch(JSON.parse(options));
const page = await browser.newPage();
await page.evaluate(() => {
return console.error('message from dumpio');
});
await page.close();
await browser.close();
})();
|