| Index: src/parsing/parser.h
|
| diff --git a/src/parsing/parser.h b/src/parsing/parser.h
|
| index a898511b237afe925acf65d351c7ca40258aebbb..09aa6db6d7e67e608bf73183ae25ae67c72d19d8 100644
|
| --- a/src/parsing/parser.h
|
| +++ b/src/parsing/parser.h
|
| @@ -340,6 +340,14 @@ class V8_EXPORT_PRIVATE Parser : public NON_EXPORTED_BASE(ParserBase<Parser>) {
|
| Block* finally_block,
|
| const CatchInfo& catch_info, int pos);
|
|
|
| + void ParseAndRewriteGeneratorFunctionBody(int pos, FunctionKind kind,
|
| + ZoneList<Statement*>* body,
|
| + bool* ok);
|
| + void CreateFunctionNameAssignment(const AstRawString* function_name, int pos,
|
| + FunctionLiteral::FunctionType function_type,
|
| + DeclarationScope* function_scope,
|
| + ZoneList<Statement*>* result, int index);
|
| +
|
| Statement* DeclareFunction(const AstRawString* variable_name,
|
| FunctionLiteral* function, VariableMode mode,
|
| int pos, bool is_generator, bool is_async,
|
| @@ -533,13 +541,7 @@ class V8_EXPORT_PRIVATE Parser : public NON_EXPORTED_BASE(ParserBase<Parser>) {
|
|
|
| Block* BuildParameterInitializationBlock(
|
| const ParserFormalParameters& parameters, bool* ok);
|
| - Block* BuildRejectPromiseOnException(Block* block, bool* ok);
|
| -
|
| - // Consumes the ending }.
|
| - ZoneList<Statement*>* ParseEagerFunctionBody(
|
| - const AstRawString* function_name, int pos,
|
| - const ParserFormalParameters& parameters, FunctionKind kind,
|
| - FunctionLiteral::FunctionType function_type, bool* ok);
|
| + Block* BuildRejectPromiseOnException(Block* block);
|
|
|
| ZoneList<Statement*>* ParseFunction(
|
| const AstRawString* function_name, int pos, FunctionKind kind,
|
| @@ -1025,8 +1027,7 @@ class V8_EXPORT_PRIVATE Parser : public NON_EXPORTED_BASE(ParserBase<Parser>) {
|
| auto* init_block = BuildParameterInitializationBlock(parameters, ok);
|
| if (!*ok) return;
|
| if (is_async) {
|
| - init_block = BuildRejectPromiseOnException(init_block, ok);
|
| - if (!*ok) return;
|
| + init_block = BuildRejectPromiseOnException(init_block);
|
| }
|
| if (init_block != nullptr) body->Add(init_block, zone());
|
| }
|
|
|