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 // Slowifying an array while it is being iterated does not affect iteration.
2
3 var a = [9, 8, 7, 6, 5, 4, 3];
4 var log = '';
5 for (var x of a) {
6 log += x;
7 if (x === 6)
8 a.slow = true;
9 }
10 assertEq(log, "9876543");