Index: test/mjsunit/regress/regress-add-minus-zero.js |
diff --git a/test/mjsunit/regress/regress-crbug-242870.js b/test/mjsunit/regress/regress-add-minus-zero.js |
similarity index 90% |
copy from test/mjsunit/regress/regress-crbug-242870.js |
copy to test/mjsunit/regress/regress-add-minus-zero.js |
index 7183375ca811cedc81c870d34e694e98cf727f9b..0b4af754245f17b063b33f6afa517bffe1bed699 100644 |
--- a/test/mjsunit/regress/regress-crbug-242870.js |
+++ b/test/mjsunit/regress/regress-add-minus-zero.js |
@@ -27,17 +27,12 @@ |
// Flags: --allow-natives-syntax |
-var non_const_true = true; |
+var o = { a: 0 }; |
-function f() { |
- return (non_const_true || true && g()); |
-} |
+function f(x) { return -o.a + 0; }; |
-function g() { |
- for (;;) {} |
-} |
- |
-assertTrue(f()); |
-assertTrue(f()); |
+assertEquals("Infinity", String(1/f())); |
+assertEquals("Infinity", String(1/f())); |
%OptimizeFunctionOnNextCall(f); |
-assertTrue(f()); |
+assertEquals("Infinity", String(1/f())); |
+ |