Commit eafa9206 authored by jochen's avatar jochen Committed by Commit bot

Bail out in AstTraversalVisitor::VisitFunctionBody for lazy functions

R=verwaest@chromium.org,mstarzinger@chromium.org
BUG=

Review-Url: https://chromiumcodereview.appspot.com/2425563003
Cr-Commit-Position: refs/heads/master@{#40442}
parent 489843f5
......@@ -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()));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment