プレイグラウンド、サンドボックス、使い捨てスクリプト置き場
0

Configure Feed

Select the types of activity you want to include in your feed.

Unhandled promise rejection terminates Node.js process with non-zero exit code.

Kohei Watanabe (Jul 27, 2020, 8:06 PM +0900) 679f725e a33afbef

+5
+5
playwright/main.js
··· 1 1 const playwright = require("playwright"); 2 2 3 3 async function main() { 4 + // NOTE: Unhandled promise rejection terminates Node.js process with non-zero exit code. 5 + process.on("unhandledRejection", (event) => { 6 + throw event; 7 + }); 8 + 4 9 for (const browserType of ["chromium", "firefox", "webkit"]) { 5 10 const browser = await playwright[browserType].launch(); 6 11 const context = await browser.newContext();