&& (!(right instanceof AST_Constant) || right.value == 0);
case "&&":
case "||":
- case "*":
return left.is_negative_zero() || right.is_negative_zero();
+ case "*":
case "/":
+ return true;
case "%":
return left.is_negative_zero();
default:
}
expect_stdout: "-Infinity"
}
+
+issue_3684: {
+ options = {
+ evaluate: true,
+ }
+ input: {
+ console.log(1 / (-1 * (0 & console) + 0));
+ console.log(1 / ((0 & console) / -1 + 0));
+ }
+ expect: {
+ console.log(1 / (-1 * (0 & console) + 0));
+ console.log(1 / ((0 & console) / -1 + 0));
+ }
+ expect_stdout: [
+ "Infinity",
+ "Infinity",
+ ]
+}