Index: test/mjsunit/compiler/regress-621423.js |
diff --git a/test/mjsunit/regress/regress-crbug-577112.js b/test/mjsunit/compiler/regress-621423.js |
similarity index 71% |
copy from test/mjsunit/regress/regress-crbug-577112.js |
copy to test/mjsunit/compiler/regress-621423.js |
index 504f921a335801a51fd1c0c1a39a8b08e8872722..962176ffbff75281ae55fed8a05fb40158f0d6f1 100644 |
--- a/test/mjsunit/regress/regress-crbug-577112.js |
+++ b/test/mjsunit/compiler/regress-621423.js |
@@ -4,12 +4,18 @@ |
// Flags: --allow-natives-syntax |
-Array.prototype.__proto__ = null; |
-var prototype = Array.prototype; |
+var a = [0, ""]; |
+a[0] = 0; |
+ |
+function g(array) { |
+ array[1] = undefined; |
+} |
+ |
function f() { |
- prototype.lastIndexOf({}); |
+ g(function() {}); |
+ g(a); |
} |
-f(); |
+ |
f(); |
%OptimizeFunctionOnNextCall(f); |
f(); |