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
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 does not transform the "logical or assignment" operator (
||=
)Input code
I can reproduce this using swc's JS API:
In both cases the output is:
Config
N/A
Expected behavior
The
||=
operator is transformed into something similar to TS's output.https://www.typescriptlang.org/play?target=8&ts=4.3.2#code/IYAgPmC8IEYNxA
TypeScript transforms
a ||= b
intoa || (a = b)
Version
The version of @swc/core: 1.2.59
Additional context
The text was updated successfully, but these errors were encountered: