-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Failed await should fall through to catch statement. #135
Comments
I also hope that, once combined with jstransform, the following works: var [first, second] = await Promise.all([getFirstPromise(), getSecondPromise()]); though it would be even more slick if we could remove some of that syntax. |
@bolinfest thank you very much for drawing my attention to this bug! As you can see from the fix (20f0518), the mistake was simple but the consequences were profound. |
Gotta love a two line fix! I don't know how hard it is to set up, but I'd humbly request a unit test for that one. |
Now that facebook/regenerator#135 is fixed, this works like a charm.
I'm not sure if this is expected to work today, but I would hope that I could do:
Ultimately, this should work with multiple
await
statements:I put together some sample code that chains a handful of transforms together. I would really like to use async/await along with jsx and harmony features.
The text was updated successfully, but these errors were encountered: