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

Don't use ES6 in the for-of helper #11302

Merged
merged 1 commit into from Mar 21, 2020

Conversation

nicolo-ribaudo
Copy link
Member

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

The problem is that we don't compile the helpers when using Rollup (I think). @babel/runtime and inline helpers don't have this problem because they are transpiled.

@nicolo-ribaudo nicolo-ribaudo added PR: Bug Fix 🐛 A type of pull request used for our changelog categories i: regression area: helpers labels Mar 21, 2020
@nicolo-ribaudo nicolo-ribaudo added this to the v7.9.2 milestone Mar 21, 2020
@ptomato
Copy link
Contributor

ptomato commented Mar 21, 2020

Ah, this is identical to the pull request that I was preparing, so I'm pretty sure it works 😄 I wasn't sure how to go about testing it, but since there are no tests in this PR either, I'm guessing it's probably out of scope for this fix.
Thanks for the quick response.

@existentialism
Copy link
Member

existentialism commented Mar 21, 2020

It's getting harder and harder to remember what is and isn't ES2015 :D

@nicolo-ribaudo nicolo-ribaudo merged commit 3d8f48c into babel:master Mar 21, 2020
@nicolo-ribaudo nicolo-ribaudo deleted the issue-11301 branch March 21, 2020 01:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: helpers 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.

Regression in plugin-transform-for-of 7.9.0
4 participants