summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/arrayProto.js
blob: 0186d161e634e1656f53e817c71ca41a5b9fe126 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
for (var i = 0; i < 15; i++) {
  var x = Object.create([]);
  assertEq(x.length, 0);
}

for (var i = 0; i < 15; i++) {
  function foo() {}
  foo.prototype = [];
  var x = new foo();
  assertEq(x.length, 0);
}