Skip to content

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

@aslushnikov

Description

@aslushnikov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions