www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit a854ce9dcec2b05ad95f34803bc279c3f79908ab
parent a70a517f7ef68f262cb0a9b746d78de76d7f799f
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon, 27 Nov 2017 17:31:06 -0500

Filter stack in debug output when using debug.stackTrace pref

Diffstat:
Mchrome/content/zotero/xpcom/debug.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/debug.js b/chrome/content/zotero/xpcom/debug.js @@ -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); };