fix function parsing due to faulty merge
This commit is contained in:
parent
e268c4eefb
commit
1aa8c6a37c
4
acorn.js
4
acorn.js
@ -2426,7 +2426,7 @@
|
||||
if (allowEmpty && tokType === _comma) {
|
||||
elem = null;
|
||||
} else {
|
||||
var left = parseAssignableAtom();
|
||||
var left = parseMaybeDefault();
|
||||
parseAssignableListItemTypes(left);
|
||||
elem = parseMaybeDefault(null, left);
|
||||
}
|
||||
@ -3558,8 +3558,6 @@
|
||||
node.typeParameters = parseTypeParameterDeclaration();
|
||||
}
|
||||
parseFunctionParams(node);
|
||||
expect(_parenL);
|
||||
node.params = parseBindingList(_parenR, false);
|
||||
parseFunctionBody(node, allowExpressionBody);
|
||||
return finishNode(node, isStatement ? "FunctionDeclaration" : "FunctionExpression");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user