| Index: src/compiler/ast-graph-builder.cc
|
| diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc
|
| index 6ca1a956dccd3f38d4b09da23372a572895ace4e..66c778b88a6a12c06d67d51a83909dc3184b373d 100644
|
| --- a/src/compiler/ast-graph-builder.cc
|
| +++ b/src/compiler/ast-graph-builder.cc
|
| @@ -461,8 +461,7 @@ Node* AstGraphBuilder::GetFunctionClosureForContext() {
|
| closure_scope->is_module_scope()) {
|
| // Contexts nested in the native context have a canonical empty function as
|
| // their closure, not the anonymous closure containing the global code.
|
| - // Pass a SMI sentinel and let the runtime look up the empty function.
|
| - return jsgraph()->SmiConstant(0);
|
| + return BuildLoadNativeContextField(Context::CLOSURE_INDEX);
|
| } else {
|
| DCHECK(closure_scope->is_function_scope());
|
| return GetFunctionClosure();
|
|
|