microsoft / microsoft/TypeScript
Transpilation of iterable spread is incorrect for non-iterable values.
Đang mở
@rbuckton đang làm issue này rồi.
Từ ngày 23/3/2021.
Needs Investigation
- Ngôn ngữ chính
- Go
- Star
- 111k
- Fork
- 14.4k
- Merge trung bình
- 1 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 117
Mô tả
Bug Report
🔎 Search Terms
transpilation __spreadArray spread iterable
🕗 Version & Regression Information
- This changed between versions 4.1 and 4.2, but was broken in a different way in 4.1
⏯ Playground Link
https://www.typescriptlang.org/play?target=1&ts=4.2.3#code/MYewdgziA2CmB00QHMAUBteWCMBdAlANxA
💻 Code
console.log([...1]);
🙁 Actual behavior
print []
🙂 Expected behavior
Throw a runtime exception. 1 is not an iterable.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Đánh giá
Issue này chưa được đánh giá.