We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 398f8d3 commit 5c0f44eCopy full SHA for 5c0f44e
common/content/util.js
@@ -406,6 +406,14 @@ const Util = Module("util", {
406
null
407
);
408
409
+ if (services.get("vc").compare(Application.version, "33") >= 0
410
+ && Cu.isXrayWrapper(result)) {
411
+ let (xr = result, s = asIterator ? "iterateNext" : "snapshotItem") {
412
+ result = Object.create(xr);
413
+ result[s] = xr[s].bind(xr);
414
+ }
415
416
+
417
result.__iterator__ = asIterator
418
? function () { let elem; while ((elem = this.iterateNext())) yield elem; }
419
: function () { for (let i = 0; i < this.snapshotLength; i++) yield this.snapshotItem(i); };
0 commit comments