Skip to content

Fix for binding shadowing outer var with loop closure#15309

Merged
nicolo-ribaudo merged 2 commits intobabel:mainfrom
nicolo-ribaudo:issue-15308
Dec 23, 2022
Merged

Fix for binding shadowing outer var with loop closure#15309
nicolo-ribaudo merged 2 commits intobabel:mainfrom
nicolo-ribaudo:issue-15308

Conversation

@nicolo-ribaudo
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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