| Index: src/parsing/preparser.h
|
| diff --git a/src/parsing/preparser.h b/src/parsing/preparser.h
|
| index 3b6afa7fd0d966ac8e687f53a225d621171d2402..c803928fd8e30582acf74c3657e3f40f05660241 100644
|
| --- a/src/parsing/preparser.h
|
| +++ b/src/parsing/preparser.h
|
| @@ -1019,8 +1019,10 @@ class PreParser : public ParserBase<PreParserTraits> {
|
| Statement ParseStatementListItem(bool* ok);
|
| void ParseStatementList(int end_token, bool* ok,
|
| Scanner::BookmarkScope* bookmark = nullptr);
|
| - Statement ParseStatement(bool* ok);
|
| - Statement ParseSubStatement(bool* ok);
|
| + Statement ParseStatement(AllowLabelledFunctionStatement allow_function,
|
| + bool* ok);
|
| + Statement ParseSubStatement(AllowLabelledFunctionStatement allow_function,
|
| + bool* ok);
|
| Statement ParseScopedStatement(bool legacy, bool* ok);
|
| Statement ParseFunctionDeclaration(bool* ok);
|
| Statement ParseClassDeclaration(bool* ok);
|
| @@ -1033,7 +1035,8 @@ class PreParser : public ParserBase<PreParserTraits> {
|
| Scanner::Location* first_initializer_loc,
|
| Scanner::Location* bindings_loc,
|
| bool* ok);
|
| - Statement ParseExpressionOrLabelledStatement(bool* ok);
|
| + Statement ParseExpressionOrLabelledStatement(
|
| + AllowLabelledFunctionStatement allow_function, bool* ok);
|
| Statement ParseIfStatement(bool* ok);
|
| Statement ParseContinueStatement(bool* ok);
|
| Statement ParseBreakStatement(bool* ok);
|
|
|