Skip to content

Commit 69e52fd

Browse files
committed
Merge pull request #82 from caisui/issue_33
Issue 33 - thanks as always
2 parents b23fb2d + 5c0f44e commit 69e52fd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

common/content/util.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,10 @@ const Util = Module("util", {
408408

409409
if (services.get("vc").compare(Application.version, "33") >= 0
410410
&& Cu.isXrayWrapper(result)) {
411-
result = result.wrappedJSObject;
411+
let (xr = result, s = asIterator ? "iterateNext" : "snapshotItem") {
412+
result = Object.create(xr);
413+
result[s] = xr[s].bind(xr);
414+
}
412415
}
413416

414417
result.__iterator__ = asIterator

0 commit comments

Comments
 (0)