-
Notifications
You must be signed in to change notification settings - Fork 21
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
Non-trivial destructuring initializers are broken #8
Comments
Wow. Thanks for finding these cases. I recently had a go at getting destructuring to work, but clearly missed quite a few cases. I'm away for 10 days, but will try and patch these up when I'm back |
@simonbuchan - I've fixed most of these issues, but |
Fixed in fast-async@6.0.32 |
fast-async badly transforms destructuring initializers using anything other than the trivial forms
const [a, b, c] = ...
orconst { a, b, c } = ...;
inside any async functions, even if the RHS is not an await expression.Further, it fails to parse array rest (ES2015, so not #6), and fails while transforming array eliding.
Output is:
Array rest gives error:
Without
fast-async
:Array elide gives error:
The text was updated successfully, but these errors were encountered: