aboutsummaryrefslogtreecommitdiff
path: root/test/ufuzz/index.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-04-05 03:42:23 +0100
committerGitHub <noreply@github.com>2020-04-05 10:42:23 +0800
commit1b07f640573494d1f8625f8926868caeaeaaaa9e (patch)
treeb2f77fdafe1a05439bad270a9b561eb437db5916 /test/ufuzz/index.js
parent80d9c44b22fd8d479d0cf86b1037568ea3f94cd7 (diff)
downloadtracifyjs-1b07f640573494d1f8625f8926868caeaeaaaa9e.tar.gz
tracifyjs-1b07f640573494d1f8625f8926868caeaeaaaa9e.zip
enhance `inline` (#3760)
Diffstat (limited to 'test/ufuzz/index.js')
-rw-r--r--test/ufuzz/index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ufuzz/index.js b/test/ufuzz/index.js
index f1fce6a1..76a782ef 100644
--- a/test/ufuzz/index.js
+++ b/test/ufuzz/index.js
@@ -704,6 +704,7 @@ function _createExpression(recurmax, noComma, stmtDepth, canThrow) {
break;
}
VAR_NAMES.length = nameLenBefore;
+ if (canThrow && rng(8) == 0 && !/^new /.test(s[0])) s[s.length - 1] += "()";
return filterDirective(s).join("\n");
case p++:
case p++: