Skip to content

fix: Capture let when the for body is not a block#16368

Merged
nicolo-ribaudo merged 2 commits intobabel:mainfrom
liuxingbaoyu:fix-for-block
Mar 20, 2024
Merged

fix: Capture let when the for body is not a block#16368
nicolo-ribaudo merged 2 commits intobabel:mainfrom
liuxingbaoyu:fix-for-block

Conversation

@liuxingbaoyu
Copy link
Member

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

@liuxingbaoyu liuxingbaoyu changed the title fix: Capture let when for does not follow a block fix: Capture let when for does not follow a block Mar 20, 2024
@liuxingbaoyu liuxingbaoyu added the PR: Bug Fix 🐛 A type of pull request used for our changelog categories label Mar 20, 2024
@babel-bot
Copy link
Collaborator

babel-bot commented Mar 20, 2024

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

@nicolo-ribaudo nicolo-ribaudo changed the title fix: Capture let when for does not follow a block fix: Capture let when the for body is not a block Mar 20, 2024
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.

Can you add an exec.js test?

@nicolo-ribaudo nicolo-ribaudo merged commit 3956c75 into babel:main Mar 20, 2024
@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 Jun 20, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

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]: local let variable is not captured in for..in loop

4 participants