Index: test/mjsunit/regress/regress-5275-1.js |
diff --git a/test/mjsunit/regress/regress-5085.js b/test/mjsunit/regress/regress-5275-1.js |
similarity index 54% |
copy from test/mjsunit/regress/regress-5085.js |
copy to test/mjsunit/regress/regress-5275-1.js |
index 0ed034dc2d09e97827e2b4881570d60be2b5072b..542bae0602dbe8d9f00e892ac7195a936d15bbc5 100644 |
--- a/test/mjsunit/regress/regress-5085.js |
+++ b/test/mjsunit/regress/regress-5275-1.js |
@@ -5,10 +5,14 @@ |
// Flags: --allow-natives-syntax |
function foo(x) { |
- return x instanceof Proxy; |
+ var a = new Array(1); |
+ a[0] = x; |
+ return a; |
} |
-assertFalse(foo({})); |
-assertFalse(foo({})); |
+assertEquals([1], foo(1)); |
+assertEquals([1], foo(1)); |
%OptimizeFunctionOnNextCall(foo); |
-assertFalse(foo({})); |
+assertEquals([1], foo(1)); |
+Array.prototype.__defineSetter__("0", function() {}); |
+assertEquals([undefined], foo(1)); |