diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-07-20 14:57:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-20 21:57:22 +0800 |
commit | 2021c2fa3e616da497f8fc305010c9c1dd1a67de (patch) | |
tree | 509fa5b08eef2e616d8985926e2d4ac10fb152b1 | |
parent | 484d3fd8c77d8d144c97b312cc2be17586fce995 (diff) | |
download | tracifyjs-2021c2fa3e616da497f8fc305010c9c1dd1a67de.tar.gz tracifyjs-2021c2fa3e616da497f8fc305010c9c1dd1a67de.zip |
fix corner case in false positive detection (#4011)
-rw-r--r-- | test/ufuzz/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
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)), }); |