Index: test/mjsunit/elements-length-no-holey.js |
diff --git a/test/mjsunit/regress/regress-2286.js b/test/mjsunit/elements-length-no-holey.js |
similarity index 93% |
copy from test/mjsunit/regress/regress-2286.js |
copy to test/mjsunit/elements-length-no-holey.js |
index 372451ec44ee067789fbf156c782bec6e5b36408..5bac296e1a65f51d9cdfa8406a7c0cb50f937a33 100644 |
--- a/test/mjsunit/regress/regress-2286.js |
+++ b/test/mjsunit/elements-length-no-holey.js |
@@ -27,6 +27,7 @@ |
// Flags: --allow-natives-syntax |
-assertThrows("f()", ReferenceError); |
-assertThrows("%f()", TypeError); |
-assertThrows("%_f()", SyntaxError); |
+a = [1,2,3]; |
+a.length = 1; |
+assertFalse(%HasFastHoleyElements(a)); |
+assertTrue(%HasFastSmiElements(a)); |