Source code
Revision control
Copy as Markdown
Other Tools
// 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');
// 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');