michael@0: // for-of works on slow arrays. michael@0: michael@0: var a = ['a', 'b', 'c']; michael@0: a.slow = true; michael@0: var log = ''; michael@0: for (var x of a) michael@0: log += x; michael@0: assertEq(log, 'abc');