summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/delete-array-elements.js
blob: e56fa36bd05d61118c97d311772c92e73302ffdf (plain)
1
2
3
4
5
6
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);