summaryrefslogtreecommitdiff
path: root/common/content/base.js
diff options
context:
space:
mode:
authorKris Maglione <kris@vimperator.org>2009-11-11 19:06:55 -0500
committerKris Maglione <kris@vimperator.org>2009-11-11 19:06:55 -0500
commit5523b046043f11635dec6dee2ba6dcf7ca2723b0 (patch)
tree6a089641feeee1c7daa19333c630ccfd6af6931d /common/content/base.js
parentad47056f6baffec23a76918d60dace176203b3ba (diff)
downloadpentadactyl-5523b046043f11635dec6dee2ba6dcf7ca2723b0.tar.gz
Who the hell compiles without the debugger enabled?
Diffstat (limited to 'common/content/base.js')
-rw-r--r--common/content/base.js14
1 files changed, 9 insertions, 5 deletions
diff --git a/common/content/base.js b/common/content/base.js
index babd5c8f..14d3cf68 100644
--- a/common/content/base.js
+++ b/common/content/base.js
@@ -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__';