-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
for await is transpiled to invalid code #1721
Comments
5 tasks
kdy1
added a commit
to kdy1/swc
that referenced
this issue
May 21, 2021
kdy1
added a commit
to kdy1/swc
that referenced
this issue
May 21, 2021
kdy1
added a commit
to kdy1/swc
that referenced
this issue
May 21, 2021
kdy1
added a commit
to kdy1/swc
that referenced
this issue
May 21, 2021
kdy1
added a commit
to kdy1/swc
that referenced
this issue
May 21, 2021
kdy1
added a commit
that referenced
this issue
May 21, 2021
swc_ecma_transforms_compat: - `async_to_generator`: Fix async iife. (#1722) - `async_to_generator`: Don't apply iife optimization to named function expressions. - `async_to_generator`: Remove duplicated works. - `async_to_generator`: Support `await for`. (#1721) - `async_to_generator`: Support async generators.
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
1 similar comment
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
Transpiling
for await
produces code that fails with:Input code
Config
Expected behavior
Prints 1, 2.
Version
The version of @swc/core: 1.2.57
The text was updated successfully, but these errors were encountered: