Index: src/ast/ast-expression-rewriter.cc |
diff --git a/src/ast/ast-expression-rewriter.cc b/src/ast/ast-expression-rewriter.cc |
index f46e21b410ad779a52a75f28e298f08f18d05231..ed9229c7c92fbf531e8f651c5ca305a5157ef714 100644 |
--- a/src/ast/ast-expression-rewriter.cc |
+++ b/src/ast/ast-expression-rewriter.cc |
@@ -187,6 +187,8 @@ void AstExpressionRewriter::VisitDebuggerStatement(DebuggerStatement* node) { |
void AstExpressionRewriter::VisitFunctionLiteral(FunctionLiteral* node) { |
REWRITE_THIS(node); |
VisitDeclarations(node->scope()->declarations()); |
+ Block* init_block = node->parameter_init_block(); |
+ if (init_block != nullptr) VisitBlock(init_block); |
ZoneList<Statement*>* body = node->body(); |
if (body != nullptr) VisitStatements(body); |
} |
@@ -268,7 +270,6 @@ void AstExpressionRewriter::VisitAssignment(Assignment* node) { |
void AstExpressionRewriter::VisitYield(Yield* node) { |
REWRITE_THIS(node); |
- AST_REWRITE_PROPERTY(Expression, node, generator_object); |
AST_REWRITE_PROPERTY(Expression, node, expression); |
} |
@@ -377,6 +378,10 @@ void AstExpressionRewriter::VisitGetIterator(GetIterator* node) { |
AST_REWRITE_PROPERTY(Expression, node, iterable); |
} |
+void AstExpressionRewriter::VisitInternalVariable(InternalVariable* node) { |
+ NOTHING(); |
+} |
+ |
void AstExpressionRewriter::VisitDoExpression(DoExpression* node) { |
REWRITE_THIS(node); |
AST_REWRITE_PROPERTY(Block, node, block); |