mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-19 20:42:31 +02:00
1 parent
a7b8cac7de
commit
e93f7455f2
5 files changed
+7
-13
No files matched your search
@@ -486,7 +486,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
|
||||
*/
|
||||
dumpStack: function dumpStack(msg, frames) {
|
||||
let stack = util.stackLines(Error().stack);
|
||||
stack = stack.slice(2, 2 + (frames || stack.length)).join("\n");
|
||||
stack = stack.slice(2, 2 + (frames || stack.length)).join("\n").replace(/^/gm, " ");
|
||||
util.dump((arguments.length == 0 ? "Stack" : msg) + "\n" + stack + "\n");
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user