aboutsummaryrefslogtreecommitdiff
path: root/test/ufuzz/index.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-12-20 03:22:45 +0000
committerGitHub <noreply@github.com>2020-12-20 11:22:45 +0800
commitcaea6aac81555040071c21e9e35888f78aeb5a82 (patch)
tree5dbc98bc4b77a73349472f109cef2bce7fa5b983 /test/ufuzz/index.js
parentf5224ca1f5075d6912616675f1aa7fa8cc7741f1 (diff)
downloadtracifyjs-caea6aac81555040071c21e9e35888f78aeb5a82.tar.gz
tracifyjs-caea6aac81555040071c21e9e35888f78aeb5a82.zip
handle destructuring `catch` in `--reduce-test` (#4427)
Diffstat (limited to 'test/ufuzz/index.js')
-rw-r--r--test/ufuzz/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ufuzz/index.js b/test/ufuzz/index.js
index 8fce55de..74fbd4bd 100644
--- a/test/ufuzz/index.js
+++ b/test/ufuzz/index.js
@@ -1714,7 +1714,7 @@ function patch_try_catch(orig, toplevel) {
offset: 0,
tries: [],
} ];
- var re = /(?:(?:^|[\s{}):;])try|}\s*catch\s*\(([^)]+)\)|}\s*finally)\s*(?={)/g;
+ var re = /(?:(?:^|[\s{}):;])try|}\s*catch\s*\(([^)[{]+)\)|}\s*finally)\s*(?={)/g;
while (stack.length) {
var code = stack[0].code;
var offset = stack[0].offset;