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
The minifier is reusing a variable defined inside of a function when it's not safe to do so. This changes the runtime behavior as demonstrated in this repro.
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
The minifier is reusing a variable defined inside of a function when it's not safe to do so. This changes the runtime behavior as demonstrated in this repro.
Input code
Config
Playground link
https://play.swc.rs/?version=1.3.84&code=H4sIAAAAAAAAA0XNTQrDIBAF4L2nGEIXSoP0ZynJKborhag1RphqUbMKuXsnLTSbgcd7fIOugoYOToqNc7Q1pAgj1zkLWBgAUm2o1opCdnXOEYbDQr186Tfndgr4FND13%2FUGGThCU2puFFvFOtBlu%2Bx3%2Bc%2F9vm07j8lovE2hSE%2BSV8zz%2B7m9tNeHYDbFktBJTIQI9QGn86FuuAAAAA%3D%3D&config=H4sIAAAAAAAAA41VwW7bMAy99ysCn3doB3QY9gG77RsExaIcZbJoiJSboMi%2Fj1bsNG1oY5cg5tMjRfKRen%2Fa7Zojtc2v3bv8lY%2FBZoJ8%2BxYLnRPbk1gaaHtLbQ4DN98W9EgT5G0kqKbLFWnY5g64suj788vrzGgiIsHCmG19SMGf72O22A8ZiO5sYhWXpYfE9Jk%2FYxnfJoBzubfvESPYtIEYSyYkhg6y5rjFGO1AYEabFS%2FTTW0OhFqICSwMzgwZBxVPLnDAJDEfUQfWmRYdKFDI0HIYQaNJLKElkvSUfCrsYF%2B6rvb5CxtGG4tlJSacakvktorXAwZi40vSSngFV2pwBefifmUGbzJwyemRd8SQVnryF0AqEC1Rsj1ofusJL3paY%2FtNZkheJMtnBRd9a1km6KSoJgSvVHaqDGQOWjczuNLCVNlWu84Mr5SPggMD3otWFNf0Frg9aEH5PAB6BZD%2BWq%2Bp6gqY2xSu4NNAbMC%2FJUvWBTaf6C0f1lE693uMGwF64AO6jQPSCsZ1OMuWOA3reEkORBrg1COFKvC4BGQAGE2s%2B%2FJBGzIe4tF0Efcfa2I%2BcLnt4d6mrs773b5kHCKMENdk%2FB8jsonK3cZJ1ctkP0wv%2FNREaWXwwsvzp2dDUnlafmtSTY%2Bu3CVUNXl9Tn40H4eWl2OpWhPoz0Ksdbr8A8XlsejjBgAA
SWC Info output
No response
Expected behavior
Unminified code prints
0str
while minified code prints0strstrstr
.Actual behavior
No response
Version
1.3.85
Additional context
No response
The text was updated successfully, but these errors were encountered: