Index: test/mjsunit/regress/regress-5357.js |
diff --git a/test/mjsunit/regress/regress-3650-3.js b/test/mjsunit/regress/regress-5357.js |
similarity index 70% |
copy from test/mjsunit/regress/regress-3650-3.js |
copy to test/mjsunit/regress/regress-5357.js |
index 013e4df2834e20435982300303eb6260eb41b2be..11ada60708fb233d7f02b707e7e9037611b0ec8b 100644 |
--- a/test/mjsunit/regress/regress-3650-3.js |
+++ b/test/mjsunit/regress/regress-5357.js |
@@ -5,13 +5,13 @@ |
// Flags: --allow-natives-syntax |
function foo(a) { |
- for (var d in a) { |
- delete a[1]; |
- } |
+ a++; |
+ a = Math.max(0, a); |
+ a++; |
+ return a; |
} |
-foo([1,2,3]); |
-foo([2,3,4]); |
+foo(0); |
+foo(0); |
%OptimizeFunctionOnNextCall(foo); |
-foo([1,2,3]); |
-assertOptimized(foo); |
+assertEquals(2147483648, foo(2147483646)); |