Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

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

未關閉
#65,581 2 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
68/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
javascript
領域
cli

研究方向

首先在 Node.js REPL 中使用 Promise.any([]). 重現問題,然後追蹤 REPL 對不完整成員存取和重複求值的處理。完成標準是:輸入不會無限列印相同的訊息,且無需終止程序即可正常中斷 REPL。

由索引模型根據 Issue 內容生成。

描述

v22.x
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?

https://github.com/user-attachments/assets/78e1ef27-bd9e-4567-8030-bc7ad3fada96

Additional information

No response

主要語言
JavaScript
星號
122k
分支
37.4k
平均合併
4 天 3 小時
30 天內合併 PR
279

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

nodejs/node 的其他 Issue

查看 nodejs/node 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。