From 04731384f6970519a08eed03db222b4f8eed8de9 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Thu, 30 Dec 2010 20:25:36 -0500 Subject: [PATCH] Uncommitted code from last commit. --- common/components/commandline-handler.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common/components/commandline-handler.js b/common/components/commandline-handler.js index 6998b34d..52d7682b 100644 --- a/common/components/commandline-handler.js +++ b/common/components/commandline-handler.js @@ -4,6 +4,13 @@ // given in the LICENSE.txt file included with this file. "use strict"; +function reportError(e) { + dump("dactyl: components: " + e + "\n" + (e.stack || Error().stack)); + Cu.reportError(e); +} + +try { + var global = this; var Cc = Components.classes; var Ci = Components.interfaces; @@ -53,4 +60,6 @@ else var NSGetModule = XPCOMUtils.generateNSGetModule([CommandLineHandler]); var EXPORTED_SYMBOLS = ["NSGetFactory", "global"]; +} catch (e) { reportError(e) } + // vim: set fdm=marker sw=4 ts=4 et: