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
var in block statement will overwrite the variable which has a same name,
defined in identifier label. Like the sample code below. But let won't.
So when convert code like that, please change the variable name to make them
separated.
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
var
in block statement will overwrite the variable which has a same name,defined in identifier label. Like the sample code below. But
let
won't.So when convert code like that, please change the variable name to make them
separated.
Input code
Config
Playground link
https://play.swc.rs/?version=1.2.118&code=H4sIAAAAAAAAA8tJLVFIVLBVMDSw5uVKyy9S0MgBiiQBRQysgZSNQiKQ0tbWVKjm5VIAApBsMkhWB6zIEEingGmQfpCC5Py84vycVL2c%2FHSNJE2gYC0vFwApdniYZQAAAA%3D%3D&config=H4sIAAAAAAAAA0WNOw4CMQxE7%2BI6LRQ5AQ2HsIJ3FZSfbK%2BUKNq7k0CAdmbemw5PcWA7hJyFwG4YhAxQVeKE4UahEAtY5WPEBVmI51xaUqxggVxEceyLghmuuhSnAUXeSedELqOLPvmtTdblWJhEfm8R0x6%2B5%2BdAY34cM%2BigrdBbcYXz71icl%2FsafsgXAm4Ch80AAAA%3D
Expected behavior
Version
1.2.118
Additional context
No response
The text was updated successfully, but these errors were encountered: