1 2 3 4 5 6 7
// for-of works on cross-compartment wrappers of Arrays. var g = newGlobal(); var s = ''; for (var x of g.Array(1, 1, 2, 3, 5)) s += x; assertEq(s, '11235');