mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-18 01:22:33 +02:00
Merge changes from bootstrapped.
This commit is contained in:
1 parent
47167e769e
commit
7a0f693ad4
3 files changed
+11
-12
No files matched your search
@@ -484,7 +484,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 || 0)).join("\n");
|
||||
stack = stack.slice(2, 2 + (frames || stack.length)).join("\n");
|
||||
util.dump((arguments.length == 0 ? "Stack" : msg) + "\n" + stack + "\n");
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user