1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-26 05:25:46 +01:00

Merge changes from bootstrapped.

This commit is contained in:
Kris Maglione
2010-12-27 09:38:05 -05:00
parent 47167e769e
commit 7a0f693ad4
3 changed files with 11 additions and 12 deletions

View File

@@ -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");
},