Index: test/mjsunit/regress/regress-crbug-614292.js |
diff --git a/test/mjsunit/regress/regress-5006.js b/test/mjsunit/regress/regress-crbug-614292.js |
similarity index 72% |
copy from test/mjsunit/regress/regress-5006.js |
copy to test/mjsunit/regress/regress-crbug-614292.js |
index 29f145de0ac38c971c0c9174a83ea0cee285bb18..3a67c17f6010b3bf60a8b7c9aa019ff369ddfadf 100644 |
--- a/test/mjsunit/regress/regress-5006.js |
+++ b/test/mjsunit/regress/regress-crbug-614292.js |
@@ -4,8 +4,11 @@ |
// Flags: --allow-natives-syntax |
-function foo(x) { return Math.imul(x|0, 2); } |
-print(foo(1)); |
-print(foo(1)); |
+function foo() { |
+ return [] | 0 && values[0] || false; |
+} |
+ |
%OptimizeFunctionOnNextCall(foo); |
-print(foo(1)); |
+try { |
+ foo(); |
+} catch (e) {} |