mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 04:17:59 +01:00
Who the hell compiles without the debugger enabled?
This commit is contained in:
@@ -40,12 +40,16 @@ function allkeys(obj) {
|
||||
|
||||
function keys(obj) {
|
||||
if (modules.services) {
|
||||
let ret = {};
|
||||
services.get("debugger").wrapValue(obj).getProperties(ret, {});
|
||||
for (let prop in values(ret.value))
|
||||
yield prop.name.stringValue;
|
||||
return;
|
||||
try {
|
||||
let ret = {};
|
||||
services.get("debugger").wrapValue(obj).getProperties(ret, {});
|
||||
for (let prop in values(ret.value))
|
||||
yield prop.name.stringValue;
|
||||
return;
|
||||
}
|
||||
catch (e) {}
|
||||
}
|
||||
|
||||
if ('__iterator__' in obj) {
|
||||
var iter = obj.__iterator__;
|
||||
yield '__iterator__';
|
||||
|
||||
Reference in New Issue
Block a user