Bug 673804 - followup: fix typo. r=me DONTBUILD

This commit is contained in:
Tim Taubert 2011-07-28 06:54:48 +02:00
parent 60949f9a7a
commit 5b4a98b221

View File

@ -528,7 +528,7 @@ let Utils = {
var text = this.expandArgumentsForLog(arguments);
// cut off the first line of the stack trace, because that's just this function.
let stack = Error().stack.split("\n").splice(1);
let stack = Error().stack.split("\n").slice(1);
// if the caller was assert, cut out the line for the assert function as well.
if (stack[0].indexOf("Utils_assert(") == 0)
@ -564,7 +564,7 @@ let Utils = {
text = "tabview assert: " + label;
// cut off the first line of the stack trace, because that's just this function.
let stack = Error().stack.split("\n").splice(1);
let stack = Error().stack.split("\n").slice(1);
throw text + "\n" + stack.join("\n");
}