Consider the following snippet:
const properLockfile = require('proper-lockfile'); // 1
for (let i = 0; i < 1_000_000; i += 1)
console.log(i);
It take a few seconds to run the snippet. Unfortunately, hitting Ctrl-C to abort execution does not work.
However, when removing the (1) line with proper-lockfile require, Ctrl-C would work as expected.
This has been reported to us downstream at Playwright: microsoft/playwright#19418
Consider the following snippet:
It take a few seconds to run the snippet. Unfortunately, hitting
Ctrl-Cto abort execution does not work.However, when removing the (1) line with
proper-lockfilerequire,Ctrl-Cwould work as expected.This has been reported to us downstream at Playwright: microsoft/playwright#19418