Skip to content
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 for binding shadowing outer var with loop closure #15309

Merged
merged 2 commits into from Dec 23, 2022

Conversation

nicolo-ribaudo
Copy link
Member

@nicolo-ribaudo nicolo-ribaudo commented Dec 23, 2022

Q                       A
Fixed Issues? Fixes #15308
Patch: Bug Fix? Yes
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

This PR fixes #15308 and a different bug with the transform of an updated for-loop binding that isn't captured by a closure (repl)

Fix updating of non-captured variable with loop closure
@nicolo-ribaudo nicolo-ribaudo added PR: Bug Fix 🐛 A type of pull request used for our changelog categories i: regression labels Dec 23, 2022
@babel-bot
Copy link
Collaborator

babel-bot commented Dec 23, 2022

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

@ehoogeveen-medweb
Copy link
Contributor

Test filename spelling nit: In issue-15308-for-variable-shadow-origial-sibling-scope, s/origial/original/.

@nicolo-ribaudo nicolo-ribaudo merged commit fc66e99 into babel:main Dec 23, 2022
@nicolo-ribaudo nicolo-ribaudo deleted the issue-15308 branch December 23, 2022 20:56
@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 Mar 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
i: regression 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]: transform error when use two loops in one function with @babel/plugin-transform-block-scoping@7.20.9
4 participants