-
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
I think fast-async and rest-spread is not incompatible #6
Comments
fast-async
and rest spread
is not incompatible
Thanks - I'll take a look |
It appears that this is not valid ES6 - see acornjs/acorn#388 - Object rest is a babel extension. I'll see if I can patch it up, however support for non-ES6 constructs is not guaranteed as they may change in the future. |
e.g `var {a,b,...x} = y ;` used in Babel (see #6)
This should be fixed in https://github.com/MatAtBread/fast-async/releases/tag/6.0.30 Please re-open if you this doesn't fix your issues. Thanks for reporting it. |
Best I can tell this only implements Rest. i.e.
not Spread
I haven't done the most thorough testing, but our toolchain is choking on nodents ability to parse spread. |
[IGNORE THIS - SEE BELOW] The current ECMA standard permits the Spread operator in array literals, not object literals. If you think this is part of the ECMA standard, please post an issue with Acorn I will look into a fix when it has been updated: https://github.com/ternjs/acorn/issues |
...actually, this should work with fast-async (rather than nodent), as it uses Babylon (from Babel) as the parser, not acorn. I'll see if I can work out what it's doing in the next few days |
I think
fast-async
andrest spread
is not incompatiblethe error sample :
origin es file
babel options
exception stack info
The text was updated successfully, but these errors were encountered: