@@ -2528,9 +2528,8 @@ merge(Compressor.prototype, {
|
||||
return left.is_negative_zero() || right.is_negative_zero();
|
||||
case "*":
|
||||
case "/":
|
||||
return true;
|
||||
case "%":
|
||||
return left.is_negative_zero();
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -2161,3 +2161,16 @@ collapse_vars_regexp: {
|
||||
"abbb",
|
||||
]
|
||||
}
|
||||
|
||||
issue_3738: {
|
||||
options = {
|
||||
evaluate: true,
|
||||
}
|
||||
input: {
|
||||
console.log(1 / (0 + ([] - 1) % 1));
|
||||
}
|
||||
expect: {
|
||||
console.log(1 / (0 + ([] - 1) % 1));
|
||||
}
|
||||
expect_stdout: "Infinity"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user