-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[BUGFIX LTS] Don't run getters while applying mixins #20388
Conversation
This change ensures that getters are never evaluated while applying mixins. It relies on the fact that all getters (including undecorated ones) get converted into classic decorators when the mixin is originally created.
Looks like this is aimed at the issue ID'd in #19916? |
@chriskrycho It's related to #18860 and #20129 |
@chriskrycho Do you mean to refer to "No documented public API for |
Nope, brain fog. I meant #18860, which Krystan linked. 😮💨 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple small things and then we should be able to land and back port this. Thanks for getting it fixed!
Co-authored-by: Chris Krycho <[email protected]>
@chriskrycho I think this is ready |
I am planning to do an LTS release (so: back to 4.8) by the end of this week and will make sure this is included! |
This change ensures that getters are never evaluated while applying
mixins.
It relies on the fact that all getters (including undecorated ones) get
converted into classic decorators when the mixin is originally created.