diff options
Diffstat (limited to 'test/ufuzz/index.js')
-rw-r--r-- | test/ufuzz/index.js | 1 |
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++: |