summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/for-of/array-holes-6.js
blob: 2b4703fbce1a3d75c61bfccf9be1043d31fa7b10 (plain)
1
2
3
4
5
6
7
8
// for-of visits each hole in an array full of holes.

var n = 0;
for (var x of Array(5)) {
    assertEq(x, undefined);
    n++;
}
assertEq(n, 5);