-1:000000000000 | 0:db6ec33ef0a9 |
---|---|
1 // Results from another compartment are correctly interpreted by for-of. | |
2 | |
3 load(libdir + "iteration.js"); | |
4 | |
5 var g = newGlobal(); | |
6 var it = g.eval("({ '" + std_iterator + "': function () { return this; }, " + | |
7 "next: function () { return { done: true } } });"); | |
8 for (x of it) | |
9 throw 'FAIL'; |