| Index: src/compiler/ast-graph-builder.cc
|
| diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc
|
| index e7725799233cbb63136c4bc73473c440d7463f95..11dc456e3dba721637e06a9283906a6db530255c 100644
|
| --- a/src/compiler/ast-graph-builder.cc
|
| +++ b/src/compiler/ast-graph-builder.cc
|
| @@ -1139,7 +1139,7 @@ void AstGraphBuilder::VisitBlock(Block* stmt) {
|
| VisitStatements(stmt->statements());
|
| } else {
|
| // Visit declarations and statements in a block scope.
|
| - if (stmt->scope()->ContextLocalCount() > 0) {
|
| + if (stmt->scope()->NeedsContext()) {
|
| Node* context = BuildLocalBlockContext(stmt->scope());
|
| ContextScope scope(this, stmt->scope(), context);
|
| VisitDeclarations(stmt->scope()->declarations());
|
|
|