mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-18 17:32:30 +02:00
More Gecko 2 fixes.
--HG-- branch : testing
This commit is contained in:
1 parent
0e3b5ca121
commit
3fa5bb5cea
1 file changed
+5
-4
@@ -417,11 +417,12 @@ const Util = Module("util", {
|
|||||||
null
|
null
|
||||||
);
|
);
|
||||||
|
|
||||||
result.__iterator__ = asIterator
|
return {
|
||||||
|
__proto__: result,
|
||||||
|
__iterator__: asIterator
|
||||||
? function () { let elem; while ((elem = this.iterateNext())) yield elem; }
|
? function () { let elem; while ((elem = this.iterateNext())) yield elem; }
|
||||||
: function () { for (let i = 0; i < this.snapshotLength; i++) yield this.snapshotItem(i); };
|
: function () { for (let i = 0; i < this.snapshotLength; i++) yield this.snapshotItem(i); }
|
||||||
|
}
|
||||||
return result;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user