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 missing parentheses on async
inside for..of
#10781
Conversation
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.
Strictly speaking, the parens aren't needed in for await (async of []);
, but Babel can't parse it without them.
@thorn0 Has it been reported to babel/babel or fixed already in |
@sosukesuzuki I only left a comment in babel/babel#13208, but I didn't report this issue properly. There are also issues with |
@thorn0 Thank you. I'll investigate specs and report to babel/babel and fix, okay? |
Sounds good 👍 Probably these changes in the spec are recent. |
BTW, here is valid TypeScript that compiles to invalid JS by both the TypeScript compiler and Babel (probably fixed by babel/babel#13208): |
Description
Fixes #10777
Checklist
docs/
directory).changelog_unreleased/*/XXXX.md
file followingchangelog_unreleased/TEMPLATE.md
.✨Try the playground for this PR✨