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
A non-iterable instance is destructure correctly by swc. It is grammatically wrong.
Input code
Config
Playground link
https://play.swc.rs/?version=1.2.112&code=H4sIAAAAAAAAA4tOjFWwVTCw5orW0Ym1NQAAuZl3ng8AAAA%3D&config=H4sIAAAAAAAAA0WMTQrEIAxG75K1286id5hDBCctFv9IUhgR714tlu7C915ehUMsrBUyshCPS0pU%2FMMKZAOKZZcVTNf6tKEXagYUeScdiiyd%2BZSEJjUQXHRbGSWbQmYSeRHG3T9m66GQfucYKmjJdAc%2F0N7G%2FHPynaLySe0Cj9ke9LUAAAA%3D
Expected behavior
There should be a syntax error like this:
cannot read property Symbol(Symbol.iterator)).
or
Instead of running correctly after being converted》
Version
1.2.112
Additional context
I run swc use cmd as follows
The environment is ubuntu 20.04 amd64.
The text was updated successfully, but these errors were encountered: