We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08af3ea commit 13c72a9Copy full SHA for 13c72a9
test/ufuzz/index.js
@@ -1177,15 +1177,15 @@ function skip_infinite_recursion(orig, toplevel) {
1177
var code = orig;
1178
var tries = [];
1179
var offset = 0;
1180
- var re = /(?:(?:^|[\s{});])try|}\s*catch\s*\(([^)]+)\)|}\s*finally)\s*(?={)/g;
+ var re = /(?:(?:^|[\s{}):;])try|}\s*catch\s*\(([^)]+)\)|}\s*finally)\s*(?={)/g;
1181
var match;
1182
while (match = re.exec(code)) {
1183
if (/}\s*finally\s*$/.test(match[0])) {
1184
tries.shift();
1185
continue;
1186
}
1187
var index = match.index + match[0].length + 1;
1188
- if (/(?:^|[\s{});])try\s*$/.test(match[0])) {
+ if (/(?:^|[\s{}):;])try\s*$/.test(match[0])) {
1189
tries.unshift({ try: index - offset });
1190
1191
0 commit comments