node-proper-lockfile icon indicating copy to clipboard operation
node-proper-lockfile copied to clipboard

bug: Ctrl-C doesn't work if just requiring proper-lockfile

Open aslushnikov opened this issue 2 years ago • 0 comments

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: https://github.com/microsoft/playwright/issues/19418

aslushnikov avatar Dec 20 '22 01:12 aslushnikov