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 parameter of a self invoked function is being incorrectly inlined when compiling for ES2015+.
Input code
Config
Next JS 13.0.5 default
Playground link
https://play.swc.rs/?version=1.3.22&code=H4sIAAAAAAAAA0vOzysuUcjML0lUsFXQyFSwtVPQ0ASRhgo2Ngra2pmaGrqGmtZcXMlghSBVIMUamlwKQKCjkAQXsAaLgNXl56Tq5eSnayQC5TWtAYe7DDNjAAAA&config=H4sIAAAAAAAAA3VUQW7jMAz8i845tAvsougD9tY3CIpFOWpl0RApN0aQvy%2Fl2FKcdG%2FmaEgNybEu6pM69X5Ro0kEqXzRHNmc1buCbjDUJT%2ByOghNIGcCwfWg2KQeuFDo18vrbzkOiAQr4aAGH72bS7EOhzEBUfmWpDxAZKo8kxJ%2BS8gpS3REDGDiU6wNaR8ZekgttcMQzEigJ5NqRrnNJE8Yd1BmsHpMON6h0Xr2GKXYhlkwVndooQI%2BQcd%2BgkaRGkKJJMKqkgW0cMx9XwZ4Y8JkQjZca8F5GYPcWPNO6Im1y5EeoJ3SG3RrcmV5pxNwTnHjfKKPuzl8AYjOYIiiGaBlLriTPeyZ7geWj06WyHNFZcNNVYRemtPeu9phUQ2JfZtWAps7KB12rfgK7hoib0GDczLtmkzfnrtTK8bzCOhqKFMzru3gFurNT3u0WOAJ%2FCuq%2BH4dKz4YPj1iNA9HDE8lBuAT2idYBsH4CCZx73l8RHO0IGMGe3eQqYTVprJ8Rh3K37bNWQwhOboPeKz2lZ9yMLEvtrwoxjHABGG%2F0f%2F64QdMLpnKglcrbsaDt7YzIz7yry%2Fbo3AtCtDmVYFsa3ke%2Fqhrew62MvSxEhfl%2FwDFyiNOgwQAAA%3D%3D
Expected behavior
Numbers shouldn't be inlined if their variable is being modified within the function.
Actual behavior
Number variable is being inlined even though it's being incremented.
Version
@next/swc
Additional context
No response
The text was updated successfully, but these errors were encountered: