Fix function.sent parsing

This commit is contained in:
Justin Ridgewell
2017-07-07 23:14:20 -04:00
parent f09eb3200f
commit 62d313e753
31 changed files with 745 additions and 4 deletions

View File

@@ -94,6 +94,7 @@ export default class StatementParser extends ExpressionParser {
case tt._for:
return this.parseForStatement(node);
case tt._function:
if (this.lookahead().type === tt.dot) break;
if (!declaration) this.unexpected();
return this.parseFunctionStatement(node);