michael@0: // Slowifying an array while it is being iterated does not affect iteration. michael@0: michael@0: var a = [9, 8, 7, 6, 5, 4, 3]; michael@0: var log = ''; michael@0: for (var x of a) { michael@0: log += x; michael@0: if (x === 6) michael@0: a.slow = true; michael@0: } michael@0: assertEq(log, "9876543");