minify
minify copied to clipboard
broken minified code: v + "" == "x";
Describe the bug There is a bug in the minification of the following code.
To Reproduce babel try it out
input
function compare(v) {
return v + "" == "x";
}
compare(4) // false
compare('a') // false
Actual Output
function compare(a) {
return a + "x";
}
compare(4) // '4x'
compare('a') // 'ax'
Expected Output don't minify this case
yes!!!i have a same problem too!! how did u fix it ?