From 2021c2fa3e616da497f8fc305010c9c1dd1a67de Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Mon, 20 Jul 2020 14:57:22 +0100 Subject: fix corner case in false positive detection (#4011) --- test/ufuzz/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ufuzz') 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)), }); -- cgit v1.2.3