You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
correctly transpile await in left hand side of assignment expressions
Actual behavior
functiona(fn){return_a.apply(this,arguments);}function_a(){_a=_async_to_generator(function(fn){return_ts_generator(this,function(_state){(yieldfn()).a=1;// cannot use yield in ordinary functionsreturn[2];});});return_a.apply(this,arguments);}
Version
1.3.76
Additional context
No response
The text was updated successfully, but these errors were encountered:
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.
Describe the bug
swc generates illegal js code when i use input code
Input code
Config
Playground link
https://play.swc.rs/?version=1.3.76&code=H4sIAAAAAAAAA0ssrsxLVkgrzUsuyczPU0jUSMvTVKjmUgACjcTyxMwShbQ8DU1NvUQFWwVDa65aANML9EIwAAAA&config=H4sIAAAAAAAAA1WPSw7DIAxE95wCed1tN71DD2FRJwLxEyZSUZS7Fyikzc4z8%2ByRdyElGFbwkHsdq4iYmNKpq8PFZ3xXB0g5ZJV0zHCbqeEWLWiZunV8E8iYVsp9i%2B8DBxsC08SH57TXS%2FkvVMHFRMxXsKHoV0vXOjEqwYXX1sPxSC6xqXbNBW8YfuRsPK%2BD5udcz2kjcXwAmJf30BkBAAA%3D
Expected behavior
correctly transpile
await
in left hand side of assignment expressionsActual behavior
Version
1.3.76
Additional context
No response
The text was updated successfully, but these errors were encountered: