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
Currently SWC minifier would assume toString and valueOf to be pure so it would remove a + b. However if a is number and b is BigInt, it would result in a TypeError
Input code
exportfunctionfoo(a,b){a+b}
Config
Playground link (or link to the minimal reproduction)
Describe the bug
Currently SWC minifier would assume toString and valueOf to be pure so it would remove
a + b
. However ifa
is number andb
is BigInt, it would result in aTypeError
Input code
Config
Playground link (or link to the minimal reproduction)
link
SWC Info output
No response
Expected behavior
No idea
Actual behavior
Version
Additional context
terser/terser#1301
The text was updated successfully, but these errors were encountered: