mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 23:27:58 +01:00
Fix JS completion bug.
--HG-- branch : testing
This commit is contained in:
@@ -59,7 +59,9 @@ const JavaScript = Module("javascript", {
|
|||||||
}
|
}
|
||||||
// The debugger doesn't list some properties. I can't guess why.
|
// The debugger doesn't list some properties. I can't guess why.
|
||||||
for (let k in orig)
|
for (let k in orig)
|
||||||
if (k in orig && !('|' + k in seen) && orig.hasOwnProperty(k) == toplevel)
|
if (k in orig && !('|' + k in seen)
|
||||||
|
&& callable(orig.hasOwnProperty)
|
||||||
|
&& orig.hasOwnProperty(k) == toplevel)
|
||||||
yield [k, this.getKey(orig, k)]
|
yield [k, this.getKey(orig, k)]
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user