mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 06:08:02 +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) {
|
function keys(obj) {
|
||||||
if (modules.services) {
|
if (modules.services) {
|
||||||
let ret = {};
|
try {
|
||||||
services.get("debugger").wrapValue(obj).getProperties(ret, {});
|
let ret = {};
|
||||||
for (let prop in values(ret.value))
|
services.get("debugger").wrapValue(obj).getProperties(ret, {});
|
||||||
yield prop.name.stringValue;
|
for (let prop in values(ret.value))
|
||||||
return;
|
yield prop.name.stringValue;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
catch (e) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ('__iterator__' in obj) {
|
if ('__iterator__' in obj) {
|
||||||
var iter = obj.__iterator__;
|
var iter = obj.__iterator__;
|
||||||
yield '__iterator__';
|
yield '__iterator__';
|
||||||
|
|||||||
Reference in New Issue
Block a user