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
Support undecorated static accessor in anonymous classes #16485
Support undecorated static accessor in anonymous classes #16485
Conversation
dd0139f
to
7ff0a31
Compare
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/56888 |
7ff0a31
to
c55226a
Compare
c55226a
to
ab03576
Compare
@@ -15,3 +15,19 @@ class Foo { | |||
Foo.#B = v; | |||
} | |||
} | |||
Foo = class _Class { |
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.
The named evaluation is still preserved because Babel generates specific setFunctionName calls for those will-be-transformed classes.
It doesn't seem to be the case here?
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.
Fixed in f45d9b3.
CI passed, I'm not sure about why it's still marked as yellow. |
Ensures that the class is named when Babel transforms an undecorated static accessor. The named evaluation is still preserved because Babel generates specific
setFunctionName
calls for those will-be-transformed classes.