summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testObjectLength.js
blob: 3813a6e51b0454f22810795ec9c7686b556a6679 (plain)
1
2
3
4
5
6
7
8
9
10
function testObjectLength()
{
  var counter = 0;
  var a = {};
  a.length = 10000;
  for (var i = 0; i < a.length; i++)
    counter++;
  return counter;
}
assertEq(testObjectLength(), 10000);