summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma/Array/array-length-set-during-for-in.js
blob: 83d476f7f94d0f177990592428720954fcc3e559 (plain)
1
2
3
4
5
6
7
8
9
10
var a = [0, 1];
var iterations = 0;
for (var k in a) {
  iterations++;
  a.length = 1;
}
assertEq(iterations, 1);

if (typeof reportCompare === "function")
  reportCompare(true, true);