}
if (isNaN(result)) return compressor.find_parent(AST_With) ? this : result;
if (compressor.option("unsafe_math")
+ && result
&& typeof result == "number"
&& (this.operator == "+" || this.operator == "-")) {
var digits = Math.max(0, decimals(left), decimals(right));
}
expect_stdout: "number 99 11 121"
}
+
+issue_3539: {
+ options = {
+ evaluate: true,
+ unsafe_math: true,
+ }
+ input: {
+ var a = -0 + -"";
+ console.log(0/a, 1/a, -1/a);
+ }
+ expect: {
+ var a = -0;
+ console.log(0/a, 1/a, -1/a);
+ }
+ expect_stdout: "NaN -Infinity Infinity"
+}