Skip to content

Commit 398f8d3

Browse files
committed
Revert "fix: __iterator__ set on Xray's XPathResult object not being called"
This reverts commit f064f04. see #50 (comment)
1 parent f064f04 commit 398f8d3

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

common/content/util.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -406,11 +406,6 @@ const Util = Module("util", {
406406
null
407407
);
408408

409-
if (services.get("vc").compare(Application.version, "33") >= 0
410-
&& Cu.isXrayWrapper(result)) {
411-
result = result.wrappedJSObject;
412-
}
413-
414409
result.__iterator__ = asIterator
415410
? function () { let elem; while ((elem = this.iterateNext())) yield elem; }
416411
: function () { for (let i = 0; i < this.snapshotLength; i++) yield this.snapshotItem(i); };

0 commit comments

Comments
 (0)