| Index: src/heap-snapshot-generator.cc
|
| diff --git a/src/heap-snapshot-generator.cc b/src/heap-snapshot-generator.cc
|
| index 6229386804b0361109178c73c482996dbd002d4e..f085622c2ad19325e547bc822cdd4d46cf1e8f10 100644
|
| --- a/src/heap-snapshot-generator.cc
|
| +++ b/src/heap-snapshot-generator.cc
|
| @@ -1164,8 +1164,8 @@ void V8HeapExplorer::ExtractJSObjectReferences(
|
| ExtractPropertyReferences(js_obj, entry);
|
| ExtractElementReferences(js_obj, entry);
|
| ExtractInternalReferences(js_obj, entry);
|
| - SetPropertyReference(
|
| - obj, entry, heap_->proto_string(), js_obj->GetPrototype());
|
| + PrototypeIterator iter(heap_->isolate(), js_obj);
|
| + SetPropertyReference(obj, entry, heap_->proto_string(), iter.GetCurrent());
|
| if (obj->IsJSFunction()) {
|
| JSFunction* js_fun = JSFunction::cast(js_obj);
|
| Object* proto_or_map = js_fun->prototype_or_initial_map();
|
|
|