-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backward compat issue with non enumerable properties #38958
Comments
Which properties? Class properties? Are they initialized? What are your compiler settings? |
He's probably referring to #32264 which was documented in the release notes as a breaking change. @deltakosh consider using |
If we add a flag we'll have to maintain it forever, so no. You can stay on 3.8 until you're ready to upgrade |
well it was a fast discussion :)... We cannot use |
All those The previous inconsistency in behaviour between es5 and es2015 targets was way more problematic, and I personally appreciate this change. |
Oh but don’t get me wrong I do appreciate it but I could also have appreciated a grace period. If we want to stick with latest versions, we have no option but do a large change in our codebase |
It's not like you couldn't have removed your code's dependence on a spec incompliance any time between now and whenever you wrote it. If we give you a flag now, then take it away later because it's a maintenance burden, all that does is change when in time you'd be unable to immediately upgrade. |
Well first I was not aware of the incompliance until today. Furthermore even if I knew, I would have taken for granted that TS was setting the enumerable to true for me Great power, great responsibilities |
we (babylon.js team) are using a lot of properties and we need to enumerate properties for quite a few scenario (cloning, serialization, etc..)
Can we get a flag in the compiler to restore the previous scenario? This is a big breaking change for us?
Thanks a ton!
TypeScript Version: 3.9.5
Search Terms: Enumerable
Code no code related. We just need a way to preserve back compat while we migrate our code to a different pattern
Expected behavior: An option in the compiler to keep the properties enumerable
Actual behavior: Properties are not enumerable
The text was updated successfully, but these errors were encountered: