microsoft / microsoft/TypeScript
Transpilation of iterable spread is incorrect for non-iterable values.
オープン
@rbuckton がすでに取り組んでいます。
2021年3月23日 から。
Needs Investigation
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.3k
- 平均マージ
- 2日 4時間
- マージ済み PR(30日)
- 132
説明
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.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。