REPL spamming and stuck when `Promise.any([]).` is typed
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- javascript
- Domain
- cli
Research direction
Start by reproducing the issue in the Node.js REPL with Promise.any([])., then trace the REPL handling for incomplete member access and repeated evaluation. Done means the input does not print the same message indefinitely and the REPL remains normally interruptible without killing the process.
Written by the indexing model from the issue text.
Description
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?
- Open repl by typing
node - Type
Promise.any([]) - Add dot in the end to make it
Promise.any([]). - 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?
https://github.com/user-attachments/assets/78e1ef27-bd9e-4567-8030-bc7ad3fada96
Additional information
No response
- Dominant language
- JavaScript
- Stars
- 122k
- Forks
- 37.4k
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 279
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nodejs/node
-
doc
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
build
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
feature request
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
palladius/rails8-app-on-gcp#145 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
dotenvx/dotenv-vscode#139 ·
-
test-change-proposal
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
web-platform-tests/interop#1455 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
corsairdev/corsair#1764 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100