Skip to content

REPL spamming and stuck when Promise.any([]). is typed #65581

Description

@AriPerkkio

Version

v22.23.2

Platform

Darwin Aris-MacBook-Pro.local 25.5.0 Darwin Kernel Version 25.5.0: Tue Jun  9 22:28:34 PDT 2026; root:xnu-12377.121.10~1/RELEASE_ARM64_T6041 arm64

Subsystem

No response

What steps will reproduce the bug?

  1. Open repl by typing node
  2. Type Promise.any([])
  3. Add dot in the end to make it Promise.any([]).
  4. Repl gets into some infinite loop and prints messages constantly, sometimes unable to exit without killing process separately

How often does it reproduce? Is there a required condition?

Always

What is the expected behavior? Why is that the expected behavior?

Don't print same message infinitely

What do you see instead?

node-repl-boom.mov

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions