From: Alex Lam S.L Date: Mon, 20 Jul 2020 13:57:22 +0000 (+0100) Subject: fix corner case in false positive detection (#4011) X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=2021c2fa3e616da497f8fc305010c9c1dd1a67de;p=UglifyJS.git fix corner case in false positive detection (#4011) --- diff --git a/test/ufuzz/index.js b/test/ufuzz/index.js index 64ea805c..b4059ea4 100644 --- a/test/ufuzz/index.js +++ b/test/ufuzz/index.js @@ -1232,7 +1232,7 @@ function patch_try_catch(orig, toplevel) { if (typeof result != "object" || typeof result.name != "string" || typeof result.message != "string") { if (!stack.filled && match[1]) stack.push({ code: code, - index: index, + index: index && index - 1, offset: offset, tries: JSON.parse(JSON.stringify(tries)), });