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 async-to-generator ForAwait transform #5931

Closed

Conversation

jridgewell
Copy link
Member

@jridgewell jridgewell commented Jul 9, 2017

Q A
Patch: Bug Fix? Yes
Major: Breaking Change? No
Minor: New Feature? No
Deprecations? No
Spec Compliancy? No
Tests Added/Pass? Yes
Fixed Tickets Fixes #5880
License MIT
Doc PR
Dependency Changes

This was a fun one. The issue wasn't actually transform-es2015-destructuring, but transform-async-to-generator using babel-traverse directly.

I'll also submit this for 7.0.

@mention-bot
Copy link

@jridgewell, thanks for your PR! By analyzing the history of the files in this pull request, we identified @hzoo, @zenparsing and @loganfsmyth to be potential reviewers.

@jridgewell jridgewell added 6.x: backport PR: Bug Fix 🐛 A type of pull request used for our changelog categories labels Jul 9, 2017
@jridgewell jridgewell force-pushed the fix-async-to-generator-forawait branch 4 times, most recently from 5e79c2f to 4506844 Compare July 12, 2017 01:33
The old transform called an external `babel-traverse`, which doesn’t
does something funky.
@jridgewell jridgewell force-pushed the fix-async-to-generator-forawait branch from 4506844 to ceeb455 Compare July 15, 2017 05:06
@jridgewell jridgewell closed this Jul 18, 2017
@jridgewell jridgewell deleted the fix-async-to-generator-forawait branch July 18, 2017 04:46
@jridgewell jridgewell restored the fix-async-to-generator-forawait branch July 18, 2017 04:46
@stasm
Copy link

stasm commented Jan 11, 2018

@jridgewell Did this ever land for Babel 6.x?

@Andarist
Copy link
Member

@stasm this PR didnt get merged in unfortunately and i dont see that code here, so I'd say it didnt.

Babel@7 has this fix though and its very much usable already.

@stasm
Copy link

stasm commented Jan 11, 2018

@Andarist Thanks, this is good to know.

@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 5, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
6.x: backport 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.

Destructuring assignment inside of AsyncIterator cause error 'Cannot read property 'file' of undefined'
4 participants