summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testOwnPropertyWithInOperator.js
blob: 2224dba2d6bb3964c1db172061c999235156ac96 (plain)
1
2
3
4
5
6
7
8
9
function testOwnPropertyWithInOperator()
{
  var o = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6 };
  var a = [];
  for (var i = 0; i < 7; i++)
    a.push(i in o);
  return a.join(",");
}
assertEq(testOwnPropertyWithInOperator(), "true,true,true,true,true,true,true");