REPL spamming and stuck when `Promise.any([]).` is typed
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 68/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- javascript
- 領域
- cli
研究方向
首先在 Node.js REPL 中使用 Promise.any([]). 重現問題,然後追蹤 REPL 對不完整成員存取和重複求值的處理。完成標準是:輸入不會無限列印相同的訊息,且無需終止程序即可正常中斷 REPL。
由索引模型根據 Issue 內容生成。
描述
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
- 主要語言
- JavaScript
- 星號
- 122k
- 分支
- 37.4k
- 平均合併
- 4 天 3 小時
- 30 天內合併 PR
- 279
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
nodejs/node 的其他 Issue
-
doc
難度 2/5 1-3 小時 新手友好度 65/100
-
build
難度 1/5 1 小時以內 新手友好度 88/100
-
難度 2/5 1-3 小時 新手友好度 84/100
-
難度 1/5 1 小時以內 新手友好度 90/100
-
feature request
難度 2/5 1-3 小時 新手友好度 68/100
相似的 Issue
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 70/100
georgestephanis/p2026#40 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
Margaret-Petersen/food-delivery-app-clone-react-native#1981 ·