summaryrefslogtreecommitdiffstats
path: root/devtools/client
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-02-28 15:12:38 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-02-28 15:12:38 +0100
commit9fafdd4546bb51ff2a29a67f369797d19d614350 (patch)
tree162415b1a3ceccc14893f7bbe41cb1ac7182824f /devtools/client
parentd5d3cc71b8a06709de0ae2d2cf2e34a3c368fe30 (diff)
downloadUXP-9fafdd4546bb51ff2a29a67f369797d19d614350.tar
UXP-9fafdd4546bb51ff2a29a67f369797d19d614350.tar.gz
UXP-9fafdd4546bb51ff2a29a67f369797d19d614350.tar.lz
UXP-9fafdd4546bb51ff2a29a67f369797d19d614350.tar.xz
UXP-9fafdd4546bb51ff2a29a67f369797d19d614350.zip
basilisk -jsdebugger - Import Console.jsm before calling console.[something]
https://github.com/MoonchildProductions/moebius/pull/250
Diffstat (limited to 'devtools/client')
-rw-r--r--devtools/client/devtools-startup.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/devtools/client/devtools-startup.js b/devtools/client/devtools-startup.js
index f07e4ff2b..377ab6419 100644
--- a/devtools/client/devtools-startup.js
+++ b/devtools/client/devtools-startup.js
@@ -104,12 +104,14 @@ DevToolsStartup.prototype = {
return Services.prefs.getBoolPref(pref);
});
} catch (ex) {
+ let { console } = Cu.import("resource://gre/modules/Console.jsm", {});
console.error(ex);
return false;
}
if (!remoteDebuggingEnabled) {
let errorMsg = "Could not run chrome debugger! You need the following " +
"prefs to be set to true: " + kDebuggerPrefs.join(", ");
+ let { console } = Cu.import("resource://gre/modules/Console.jsm", {});
console.error(new Error(errorMsg));
// Dump as well, as we're doing this from a commandline, make sure people
// don't miss it: