This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/js/src/jsobj.cpp b/js/src/jsobj.cpp | |
index afa2125..2afdbb8 100644 | |
--- a/js/src/jsobj.cpp | |
+++ b/js/src/jsobj.cpp | |
@@ -7230,7 +7230,6 @@ dumpValue(const Value &v) | |
fprintf(stderr, "false"); | |
} else if (v.isMagic()) { | |
fprintf(stderr, "<invalid"); | |
-#ifdef DEBUG | |
switch (v.whyMagic()) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let { devtools } = Cu.import("resource://gre/modules/devtools/Loader.jsm", {}); | |
function openToolbox() { | |
let target = devtools.TargetFactory.forTab(gBrowser.selectedTab); | |
return gDevTools.showToolbox(target, "jsdebugger"); | |
} | |
function closeToolbox() { | |
let target = devtools.TargetFactory.forTab(gBrowser.selectedTab); | |
return gDevTools.closeToolbox(target); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cu.import("resource://gre/modules/jsdebugger.jsm"); | |
addDebuggerToGlobal(this); | |
let browser = gBrowser.getBrowserForTab(gBrowser.selectedTab); | |
let contentWindow = browser.contentWindow; | |
let dbg = new Debugger(contentWindow); | |
let start = Date.now(); | |
dbg.memory.captureDominatorTree(contentWindow) |