michael@0: // Results from another compartment are correctly interpreted by for-of. michael@0: michael@0: load(libdir + "iteration.js"); michael@0: michael@0: var g = newGlobal(); michael@0: var it = g.eval("({ '" + std_iterator + "': function () { return this; }, " + michael@0: "next: function () { return { done: true } } });"); michael@0: for (x of it) michael@0: throw 'FAIL';