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 is removing some parentheses form this for loop, and the resulting code logs
0
instead of1
Input code
Config
Playground link (or link to the minimal reproduction)
https://play.swc.rs/?version=1.6.7&code=H4sIAAAAAAAAA8tJLVFIzi%2FNK1GwVTCw5krLL1LQKEssUkgE8g0VamoUNIwUMvMUqms1wZRChRVQWAHIA2vS1rbmSs7PK87PSdXLyU%2FXAAtqWnMBADlkkHNWAAAA&config=H4sIAAAAAAAAA1WPMQ7DIAxF95wCee5QMXToHXoIRJyIKgFkO1KjKHcvJICSDf%2F3P9%2FeOqXgyxbeakvPNERDjNTmpPDqxfySArJGZEsuCjwqFc5IaMEm9WgDGQnEhRxgPzlMITAmMJiJSwZm592wXkttmCMh892YrcaPU8vffhZDI0peFFk%2FtYauMJhDvxyhcmQ%2B5PS9Lqa6RCsEx5%2BaPOv2P70hJh0xAQAA
SWC Info output
No response
Expected behavior
Same code
Actual behavior
Version
1.6.7
Additional context
Babel has the same bug: babel/babel#16628
The text was updated successfully, but these errors were encountered: