1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 08:07:59 +01:00

Fix JS completion bug.

--HG--
branch : testing
This commit is contained in:
Kris Maglione
2010-06-17 16:52:45 -04:00
parent 05a3bcf180
commit 9589d33fd2

View File

@@ -59,7 +59,9 @@ const JavaScript = Module("javascript", {
}
// The debugger doesn't list some properties. I can't guess why.
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)]
}
else {