Index: test/mjsunit/regress/regress-crbug-476477-2.js |
diff --git a/test/mjsunit/regress/regress-3650-3.js b/test/mjsunit/regress/regress-crbug-476477-2.js |
similarity index 64% |
copy from test/mjsunit/regress/regress-3650-3.js |
copy to test/mjsunit/regress/regress-crbug-476477-2.js |
index 013e4df2834e20435982300303eb6260eb41b2be..4dbb41b7d4ced16b488f6e1d00f184446bd41368 100644 |
--- a/test/mjsunit/regress/regress-3650-3.js |
+++ b/test/mjsunit/regress/regress-crbug-476477-2.js |
@@ -4,14 +4,13 @@ |
// Flags: --allow-natives-syntax |
-function foo(a) { |
- for (var d in a) { |
- delete a[1]; |
- } |
+function foo(x) { |
+ var s = Math.floor(x / 3600); |
+ Math.floor(s); |
+ return s % 24; |
} |
-foo([1,2,3]); |
-foo([2,3,4]); |
+foo(12345678); |
+foo(12345678); |
%OptimizeFunctionOnNextCall(foo); |
-foo([1,2,3]); |
-assertOptimized(foo); |
+foo(12345678); |