| Index: src/profile-generator.cc
|
| diff --git a/src/profile-generator.cc b/src/profile-generator.cc
|
| index ec08f8dca806b0f34985ca4dbd859b8e464ce9eb..427c4ba4b0281a800078cb7461f8c4a239f8e5c7 100644
|
| --- a/src/profile-generator.cc
|
| +++ b/src/profile-generator.cc
|
| @@ -2157,7 +2157,7 @@ void V8HeapExplorer::ExtractClosureReferences(JSObject* js_obj,
|
| if (!js_obj->IsJSFunction()) return;
|
|
|
| JSFunction* func = JSFunction::cast(js_obj);
|
| - Context* context = func->context();
|
| + Context* context = func->context()->declaration_context();
|
| ScopeInfo* scope_info = context->closure()->shared()->scope_info();
|
|
|
| if (func->shared()->bound()) {
|
|
|