Index: test/mjsunit/regress/regress-crbug-340064.js |
diff --git a/test/mjsunit/regress/regress-array-pop-deopt.js b/test/mjsunit/regress/regress-crbug-340064.js |
similarity index 90% |
copy from test/mjsunit/regress/regress-array-pop-deopt.js |
copy to test/mjsunit/regress/regress-crbug-340064.js |
index 9a0d35d3aa61b0bd3a05971b90f7c7544084d76c..f2ab1d66759cd5c2abfade19d4cf566595eec936 100644 |
--- a/test/mjsunit/regress/regress-array-pop-deopt.js |
+++ b/test/mjsunit/regress/regress-crbug-340064.js |
@@ -27,15 +27,12 @@ |
// Flags: --allow-natives-syntax |
-var o = [6,7,8,9]; |
- |
-function f(b) { |
- var v = o.pop() + b; |
- return v; |
+function f(v) { |
+ return v.length; |
} |
-assertEquals(10, f(1)); |
-assertEquals(9, f(1)); |
-assertEquals(8, f(1)); |
+assertEquals(4, f("test")); |
+assertEquals(4, f("test")); |
+assertEquals(undefined, f(true)); |
%OptimizeFunctionOnNextCall(f); |
-assertEquals("61", f("1")); |
+assertEquals(undefined, f(true)); |