summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/delete-array-elements.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/delete-array-elements.js')
-rw-r--r--js/src/jit-test/tests/basic/delete-array-elements.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/delete-array-elements.js b/js/src/jit-test/tests/basic/delete-array-elements.js
new file mode 100644
index 000000000..e56fa36bd
--- /dev/null
+++ b/js/src/jit-test/tests/basic/delete-array-elements.js
@@ -0,0 +1,7 @@
+var a = [0,1,2,3,4,5,6,7,8,9,10];
+for (var i = 0; i < 10; i++)
+ delete a[9 - i];
+assertEq(a.length, 11);
+for (i = 0; i < 10; i++)
+ assertEq(a.hasOwnProperty(i), false);
+