Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review: https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 // for-of does not skip Array holes. The value at a hole is undefined.
2
3 var a = [0, , 2, 3];
4 var log = [];
5 for (var x of a) {
6 assertEq(x, a[log.length]);
7 log.push(x);
8 }
9 assertEq(log[1], undefined);
10 assertEq(log.join(), "0,,2,3");