Skip to content

Commit eef80a7

Browse files
committed
fix: broken completion.javascript (xray check is broken)
1 parent ae3808b commit eef80a7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

common/content/javascript.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ const JavaScript = Module("javascript", {
4040
let orig = obj;
4141

4242
function iterObj(obj, toplevel) {
43-
function isXPCNativeWrapper(obj) isobject(obj) && XPCNativeWrapper.unwrap(obj) !== obj
44-
45-
if (isXPCNativeWrapper(obj)) {
43+
if (Cu.isXrayWrapper(obj)) {
4644
if (toplevel) {
4745
yield {get wrappedJSObject() 0};
4846
}

0 commit comments

Comments
 (0)