-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
fix: correctly resolve references to non-constant enum members #17050
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
fix: correctly resolve references to non-constant enum members #17050
Conversation
branchseer
commented
Jan 8, 2025
Q | A |
---|---|
Fixed Issues? | Fixes #17049 |
Patch: Bug Fix? | Yes |
Major: Breaking Change? | Yes |
Minor: New Feature? | No |
Tests Added + Pass? | Yes |
Documentation PR Link | |
Any Dependency Changes? | |
License | MIT |
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/58540 |
CI is also failing on main -- it's unrelated to this PR |
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.
Thank you!
Hi @nicolo-ribaudo, is this PR good to merge, or is there anything more to do? |
Usually we wait for a second approval from another maintainer, let's just wait a little bit longer :) |
return A; | ||
})()) | ||
} */ | ||
return; |
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.
This part seems like something we should provide in the scope prototype for Babel 8. The Scope.prototype.hasBinding
could accept an upToScope
parameter where the scope search will end.
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.
Thank you.
Update babel submodule for conformance tests to latest HEAD. The test fixtures include a new one for a bug fix which @branchseer intends to also apply to Oxc - babel/babel#17050 (see #8342).