Index: src/ast/ast-traversal-visitor.h |
diff --git a/src/ast/ast-traversal-visitor.h b/src/ast/ast-traversal-visitor.h |
index e0f88e19a980be2a9fa5c5abe29e5f575b2ecbd8..38788769073a139d770cb619093ce901f3438e07 100644 |
--- a/src/ast/ast-traversal-visitor.h |
+++ b/src/ast/ast-traversal-visitor.h |
@@ -288,6 +288,8 @@ void AstTraversalVisitor<Subclass>::VisitFunctionLiteral( |
PROCESS_EXPRESSION(expr); |
DeclarationScope* scope = expr->scope(); |
RECURSE_EXPRESSION(VisitDeclarations(scope->declarations())); |
+ // A lazily parsed function literal won't have a body. |
+ if (expr->scope()->is_lazily_parsed()) return; |
RECURSE_EXPRESSION(VisitStatements(expr->body())); |
} |