Skip to content

Conversation

branchseer
Copy link
Contributor

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

@babel-bot
Copy link
Collaborator

babel-bot commented Jan 8, 2025

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/58540

@branchseer branchseer changed the title member references should only be shadowed by bindings inside enum fix: member references should only be shadowed by bindings inside enum Jan 8, 2025
@branchseer branchseer changed the title fix: member references should only be shadowed by bindings inside enum fix: correctly resolve references to non-constant enum members Jan 8, 2025
@nicolo-ribaudo
Copy link
Member

nicolo-ribaudo commented Jan 8, 2025

CI is also failing on main -- it's unrelated to this PR

@nicolo-ribaudo nicolo-ribaudo added PR: Bug Fix 🐛 A type of pull request used for our changelog categories area: typescript labels Jan 8, 2025
Copy link
Member

@nicolo-ribaudo nicolo-ribaudo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@branchseer
Copy link
Contributor Author

Hi @nicolo-ribaudo, is this PR good to merge, or is there anything more to do?

@nicolo-ribaudo
Copy link
Member

Usually we wait for a second approval from another maintainer, let's just wait a little bit longer :)

@JLHwung @liuxingbaoyu

return A;
})())
} */
return;
Copy link
Contributor

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.

Copy link
Contributor

@JLHwung JLHwung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

@nicolo-ribaudo nicolo-ribaudo merged commit acbc09a into babel:main Jan 14, 2025
55 checks passed
Boshen pushed a commit to oxc-project/oxc that referenced this pull request Jan 15, 2025
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).
@branchseer branchseer deleted the enum_member_resolve_fix branch January 21, 2025 03:37
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Apr 22, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: typescript outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Bug Fix 🐛 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: weird behaviour on resolving enum member references
4 participants