Filter stack in debug output when using debug.stackTrace pref

This commit is contained in:
Dan Stillman 2017-11-27 17:31:06 -05:00
parent a70a517f7e
commit a854ce9dce

View file

@ -139,7 +139,7 @@ Zotero.Debug = new function () {
}
if (stack) {
message += '\n' + Zotero.Debug.stackToString(stack);
message += '\n' + this.stackToString(stack);
}
if (_console || _consoleViewer) {
@ -288,7 +288,7 @@ Zotero.Debug = new function () {
+ ':' + stack.lineNumber;
stack = stack.caller;
}
return str.substr(1);
return this.filterStack(str).substr(1);
};