| Index: src/compiler/ast-graph-builder.cc
|
| diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc
|
| index ff11d9b7ebdcfc6f6943c0627a6d8569c8f64dc2..9cfc8f77790dd09a3dcc121cc657cf1429c67b35 100644
|
| --- a/src/compiler/ast-graph-builder.cc
|
| +++ b/src/compiler/ast-graph-builder.cc
|
| @@ -2427,7 +2427,8 @@ Node* AstGraphBuilder::BuildLocalFunctionContext(Scope* scope) {
|
|
|
| // Allocate a new local context.
|
| int slot_count = scope->num_heap_slots() - Context::MIN_CONTEXT_SLOTS;
|
| - const Operator* op = javascript()->CreateFunctionContext(slot_count);
|
| + const Operator* op =
|
| + javascript()->CreateFunctionContext(slot_count, scope->scope_type());
|
| Node* local_context = NewNode(op, GetFunctionClosure());
|
|
|
| return local_context;
|
|
|