Index: test/mjsunit/regress/regress-crbug-613919.js |
diff --git a/test/mjsunit/regress/regress-crbug-602595.js b/test/mjsunit/regress/regress-crbug-613919.js |
similarity index 57% |
copy from test/mjsunit/regress/regress-crbug-602595.js |
copy to test/mjsunit/regress/regress-crbug-613919.js |
index 7f6d478e05d096d4bf03cca13271f6d49ec354b9..cbd3e43b96796677fb8fc2faf77651dce2fa0c1f 100644 |
--- a/test/mjsunit/regress/regress-crbug-602595.js |
+++ b/test/mjsunit/regress/regress-crbug-613919.js |
@@ -4,9 +4,15 @@ |
// Flags: --allow-natives-syntax --turbo-escape |
-function f(a) { return [a] } |
- |
-assertEquals([23], f(23)); |
-assertEquals([42], f(42)); |
+function g(a) { |
+ if (a) return arguments; |
+ %DeoptimizeNow(); |
+ return 23; |
+} |
+function f() { |
+ return g(false); |
+} |
+assertEquals(23, f()); |
+assertEquals(23, f()); |
%OptimizeFunctionOnNextCall(f); |
-assertEquals([65], f(65)); |
+assertEquals(23, f()); |