summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/splice-675164.js
blob: 10d0d97887f59d97a2f66bf027cf558b5be53bdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function NPList() {}
NPList.prototype = new Array;

var list = new NPList();
list.push('a');

var cut = list.splice(0, 1);

assertEq(cut[0], 'a');
assertEq(cut.length, 1);
assertEq(list.length, 0);

var desc = Object.getOwnPropertyDescriptor(list, "0");
assertEq(desc, undefined);
assertEq("0" in list, false);