suppress false positives in ufuzz (#4901)

This commit is contained in:
Alex Lam S.L
2021-05-03 12:11:53 +01:00
committed by GitHub
parent f0de9a8b5d
commit 45b6d23d36

View File

@@ -1543,9 +1543,9 @@ function _createExpression(recurmax, noComma, stmtDepth, canThrow) {
var call = "typeof " + name + ' == "function" && --_calls_ >= 0 && ' + name + args;
if (canThrow) {
if (SUPPORT.optional_chaining && args[0] != "`" && rng(50) == 0) {
call = name + "?." + args;
call = "--_calls_ >= 0 && " + name + "?." + args;
} else if (rng(20) == 0) {
call = name + args;
call = "--_calls_ >= 0 && " + name + args;
}
}
return mayDefer(call);