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
asyncFunctions transformation does not work with generators: 'parse'
#1231
Comments
My initial idea was to transform async functions into a native generator wrapped in At least, the |
The async function transformer does not transform async functions into generators. We would need to write a new transformer to support that. |
@arv Oh ok, never mind that bit for now. Can we get I don't quite see the reason why the async functions transformer stops working when generators are set to false/parse. |
Yes. async-functions should work with generators false. That is clearly a bug. |
This was due to a typo. Fixes google#1231
This was due to a typo. Fixes google#1231
This is done by setting `--async-functions=generator --generators=parse`. If you pass --output-language=es6 then we know transform async functions to generators. Related to google#1231 Fixes google#1780
This is done by setting `--async-functions=generator --generators=parse`. Related to google#1231 Fixes google#1780
This is done by setting `--async-functions=generator --generators=parse`. Related to google#1231 Fixes google#1780
This is done by setting `--async-functions=generator --generators=parse`. Related to google#1231 Fixes google#1780
This is done by setting `--async-functions=generator --generators=parse`. Related to google#1231 Fixes google#1780
This is done by setting `--async-functions --generators=parse`. Related to google#1231 Fixes google#1780
The
asyncFunctions
transformation does not work unless thegenerators
transformation is applied.Test case:
It would be nice to allow asyncFunctions to use vanilla ES6 generators when
generators: 'parse'
, for usage in Node 0.11.13.The text was updated successfully, but these errors were encountered: