summaryrefslogtreecommitdiff
path: root/common/modules/util.jsm
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-08-23 02:03:18 -0400
committerKris Maglione <maglione.k@gmail.com>2011-08-23 02:03:18 -0400
commitee55f89823d9d890f3baaa220c9d12a77fa66908 (patch)
treedaca9b5982e699627618a0e235fcd0a4955b2463 /common/modules/util.jsm
parent6ca4253ddf020854ed6ae6f39d068b52cc4d69d8 (diff)
downloadpentadactyl-ee55f89823d9d890f3baaa220c9d12a77fa66908.tar.gz
Fix Firefox exploding with OOM errors when stringifying certain functions.
Diffstat (limited to 'common/modules/util.jsm')
-rw-r--r--common/modules/util.jsm4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/modules/util.jsm b/common/modules/util.jsm
index 383a9e5e..63fb0c3b 100644
--- a/common/modules/util.jsm
+++ b/common/modules/util.jsm
@@ -898,7 +898,9 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
keys.push([i, <>{key}{noVal ? "" : <>: {value}</>}&#x0a;</>]);
}
}
- catch (e) {}
+ catch (e) {
+ util.reportError(e);
+ }
function compare(a, b) {
if (!isNaN(a[0]) && !isNaN(b[0]))