1
0
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:
Kris Maglione
2009-11-11 19:06:55 -05:00
parent ad47056f6b
commit 5523b04604

View File

@@ -40,12 +40,16 @@ function allkeys(obj) {
function keys(obj) { function keys(obj) {
if (modules.services) { if (modules.services) {
try {
let ret = {}; let ret = {};
services.get("debugger").wrapValue(obj).getProperties(ret, {}); services.get("debugger").wrapValue(obj).getProperties(ret, {});
for (let prop in values(ret.value)) for (let prop in values(ret.value))
yield prop.name.stringValue; yield prop.name.stringValue;
return; return;
} }
catch (e) {}
}
if ('__iterator__' in obj) { if ('__iterator__' in obj) {
var iter = obj.__iterator__; var iter = obj.__iterator__;
yield '__iterator__'; yield '__iterator__';