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 consults Object.prototype when it encounters a hole.
2
3 Object.prototype[1] = 'peek';
4 var log = [];
5 for (var x of [0, , 2, 3])
6 log.push(x);
7 assertEq(log[1], 'peek');
8 assertEq(log.join(), "0,peek,2,3");