Index: src/parsing/parser.h |
diff --git a/src/parsing/parser.h b/src/parsing/parser.h |
index dbd8f1110108fdb17edd89958105f848e040e167..c6f8f341efa9ef8ebf990c2382d0143f882025af 100644 |
--- a/src/parsing/parser.h |
+++ b/src/parsing/parser.h |
@@ -752,8 +752,10 @@ class Parser : public ParserBase<ParserTraits> { |
ZoneList<const AstRawString*>* local_names, |
Scanner::Location* reserved_loc, bool* ok); |
ZoneList<ImportDeclaration*>* ParseNamedImports(int pos, bool* ok); |
- Statement* ParseStatement(ZoneList<const AstRawString*>* labels, bool* ok); |
- Statement* ParseSubStatement(ZoneList<const AstRawString*>* labels, bool* ok); |
+ Statement* ParseStatement(ZoneList<const AstRawString*>* labels, |
+ AllowLabelledFunctionStatement, bool* ok); |
adamk
2016/03/24 01:15:52
Sadly I think v8 style here is to name the argumen
|
+ Statement* ParseSubStatement(ZoneList<const AstRawString*>* labels, |
+ AllowLabelledFunctionStatement, bool* ok); |
Statement* ParseStatementAsUnlabelled(ZoneList<const AstRawString*>* labels, |
bool* ok); |
Statement* ParseFunctionDeclaration(ZoneList<const AstRawString*>* names, |
@@ -895,7 +897,8 @@ class Parser : public ParserBase<ParserTraits> { |
ZoneList<const AstRawString*>* names, |
bool* ok); |
Statement* ParseExpressionOrLabelledStatement( |
- ZoneList<const AstRawString*>* labels, bool* ok); |
+ ZoneList<const AstRawString*>* labels, AllowLabelledFunctionStatement, |
+ bool* ok); |
IfStatement* ParseIfStatement(ZoneList<const AstRawString*>* labels, |
bool* ok); |
Statement* ParseContinueStatement(bool* ok); |