blob: 3df71b43b5e9556b0fe12b5cd11cf1415d736e9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/**
* @license
* Copyright 2024 Google Inc.
* SPDX-License-Identifier: Apache-2.0
*/
(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();
})();
|