enhance inline (#3760)

This commit is contained in:
Alex Lam S.L
2020-04-05 03:42:23 +01:00
committed by GitHub
parent 80d9c44b22
commit 1b07f64057
5 changed files with 151 additions and 17 deletions

View File

@@ -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++: