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
The identifier
Infinity
might refer to a local variable whose value is not ∞, but SWC assumes that it's always ∞.Input code
Config
Playground link
https://play.swc.rs/?version=1.3.70&code=H4sIAAAAAAAAA6vmUlDISS1R8MxLy8zLLKlUsFUwtgaKZaYpaMDF7BRMNBWS8%2FOK83NS9XLy0zWMNblqAbTYNkc6AAAA&config=H4sIAAAAAAAAA1WMMQ6AIAxFd09BmB0Mo5cxBKrBRCVtTSSGu1vEAaf2v9%2B%2Bu1NKb2EPc9KjYjyhL2QlJ%2FGWta1rFuKOLSIQNUyoB%2Bsnd3j4TF%2BT35n7KosWCbCVUdrZXkI0pwjkMETWvx%2B2uACXCyAzGFPa3OUHviUI6bwAAAA%3D
Expected behavior
The generated code should either be empty, or still have the
if
check beforeconsole.log
. Theconsole.log
statement should not be executed.Actual behavior
The generated code is
Version
1.3.70
Additional context
No response
The text was updated successfully, but these errors were encountered: