This commit is contained in:
Alex Lam S.L
2017-11-05 12:49:14 +08:00
committed by GitHub
parent 5b4b07e9a7
commit 25a18883f5

View File

@@ -353,7 +353,7 @@ function createParams() {
function createArgs(recurmax, stmtDepth, canThrow) {
var args = [];
for (var n = rng(4); --n >= 0;) {
args.push(createExpression(recurmax, COMMA_OK, stmtDepth, canThrow));
args.push(rng(2) ? createValue() : createExpression(recurmax - 1, COMMA_OK, stmtDepth, canThrow));
}
return args.join(', ');
}