From a854ce9dcec2b05ad95f34803bc279c3f79908ab Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 27 Nov 2017 17:31:06 -0500 Subject: [PATCH] Filter stack in debug output when using debug.stackTrace pref --- chrome/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 index 0e5468f59..ea9caf6f7 100644 --- 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); };