From eeb734c6556f0fe348b70135885c9e0240d9500b Mon Sep 17 00:00:00 2001 From: kkapsner Date: Mon, 15 Dec 2014 21:11:04 +0100 Subject: [PATCH] Removed the wrong double stack issue. --- data/inject.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/data/inject.js b/data/inject.js index d479bc6..cc77a1b 100644 --- a/data/inject.js +++ b/data/inject.js @@ -112,8 +112,11 @@ var findme = callers.shift(); // Remove us from the stack findme = findme.replace(/(:[0-9]+){1,2}$/, ""); // rm line & column // Eliminate squashed stack. stack may contain 2+ stacks, but why... + var inDoubleStack = false; callers = callers.filter(function(caller){ - return caller.search(findme) === -1; + var doubleStackStart = caller.search(findme) !== -1; + inDoubleStack = inDoubleStack || doubleStackStart; + return !inDoubleStack; }); msg += "\n\n" + _("sourceOutput") + ": "; if (settings.showCompleteCallingStack){