| Index: src/compiler/ast-graph-builder.cc
|
| diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc
|
| index 272eef1f316789e647efbfb04eed2be3431dae7e..3d68ef50547e3edc560accbf4b807138a69c333b 100644
|
| --- a/src/compiler/ast-graph-builder.cc
|
| +++ b/src/compiler/ast-graph-builder.cc
|
| @@ -568,7 +568,7 @@ bool AstGraphBuilder::CreateGraph(bool stack_check) {
|
| }
|
|
|
| // Build local context only if there are context allocated variables.
|
| - if (info()->num_heap_slots() > 0) {
|
| + if (scope->num_heap_slots() > 0) {
|
| // Push a new inner context scope for the current activation.
|
| Node* inner_context = BuildLocalActivationContext(GetFunctionContext());
|
| ContextScope top_context(this, scope, inner_context);
|
|
|