-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Stackoverflow when compiling a specific getter method #48248
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Bisected to #45350, which seems odd |
For context/searchability, here's the call stack:
|
when there's a trampoline frame in your overflow stack... 😔 |
Aww ): Here's one to make you feel better (: class MyThing {
get myProp() {
return Promise[this];
}
}
|
Good news: it appears this bug has been fixed by #48459. This means it should be fixed in the current nightly, and from TS 4.7 onwards. @erik-krogh if you find the issue is still happening in those versions, please let us know and we can re-open the issue. |
Stackoverflow when compiling a specific getter method
🔎 Search Terms
🕗 Version & Regression Information
The crash started happening with 4.6, and it still occurs on the latest nightly.
The crash doesn't happen on 4.5.5.
⏯ Playground Link
Reproduction playground: https://www.typescriptlang.org/dev/bug-workbench/?#code/MYGwhgzhAECyCeAVAFgSwHYHNoG8BQ00mApgC7QC28ACgE4D2ADgBQCUu0tZArretKTQwAZMOgAiAGb164gNzQAvnkVA
💻 Code
The crash only happens when
strictNullChecks
is enabled.🙁 Actual behavior
Crash.
🙂 Expected behavior
No crash.
The text was updated successfully, but these errors were encountered: