generate bare anonymous functions
This commit is contained in:
parent
0a259f74e4
commit
7194c09e4c
|
|
@ -631,7 +631,7 @@ function _createExpression(recurmax, noComma, stmtDepth, canThrow) {
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
s.push(
|
s.push(
|
||||||
'new function ' + name + '(){',
|
(rng(4) == 0 ? '' : 'new ') + 'function ' + name + '(){',
|
||||||
strictMode(),
|
strictMode(),
|
||||||
createStatements(rng(5) + 1, recurmax, canThrow, CANNOT_BREAK, CANNOT_CONTINUE, CAN_RETURN, stmtDepth),
|
createStatements(rng(5) + 1, recurmax, canThrow, CANNOT_BREAK, CANNOT_CONTINUE, CAN_RETURN, stmtDepth),
|
||||||
'}'
|
'}'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user