Index: test/mjsunit/compiler/regress-5278.js |
diff --git a/test/mjsunit/regress/regress-crbug-614292.js b/test/mjsunit/compiler/regress-5278.js |
similarity index 72% |
copy from test/mjsunit/regress/regress-crbug-614292.js |
copy to test/mjsunit/compiler/regress-5278.js |
index 3a67c17f6010b3bf60a8b7c9aa019ff369ddfadf..25b1fb03d54d297913797e566500873ed2df092e 100644 |
--- a/test/mjsunit/regress/regress-crbug-614292.js |
+++ b/test/mjsunit/compiler/regress-5278.js |
@@ -4,11 +4,10 @@ |
// Flags: --allow-natives-syntax |
-function foo() { |
- return [] | 0 && values[0] || false; |
+function foo(a, b) { |
+ return a % b; |
} |
- |
+foo(2, 1); |
+foo(2, 1); |
%OptimizeFunctionOnNextCall(foo); |
-try { |
- foo(); |
-} catch (e) {} |
+assertEquals(-0, foo(-2, 1)); |