summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/splice-call-plain-object-590780.js
blob: 4a0dc5d1592d479df71615d4aa9c297ca93c5208 (plain)
1
2
3
4
5
6
7
8
var o = { 0: 1, 1: 2, 2: 3, length: 3 };
Array.prototype.splice.call(o, 0, 1);

assertEq(o[0], 2);
assertEq(o[1], 3);
assertEq(Object.getOwnPropertyDescriptor(o, 2), undefined);
assertEq("2" in o, false);
assertEq(o.length, 2);