-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Native await
keyword is not used in async generator even after es2017
#23695
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
Comments
you are correct. it is part of es2017. PRs welcomed. |
It's not part of es2017. Async functions are part of es2017, but asynchronous generators (and async for loops) are still just a stage-3 proposal. |
I think you can fix this issue without touching part of async generator. |
The generated code looks correct. Your example of "correct" code would be a syntax error even in ES2018 engines because you are using the |
Right, I can't think of a solution to that issue for now. |
We can do it as part of es2018. |
TypeScript Version: master
Search Terms:
Code
Expected behavior:
Actual behavior:
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered: