Index: src/heap-profiler.cc |
diff --git a/src/heap-profiler.cc b/src/heap-profiler.cc |
index 4f9456e174663625a8b4c5faaade1395cc0362c8..7f7cd7f1691ed08d05259ef6a40330c68afef6d2 100644 |
--- a/src/heap-profiler.cc |
+++ b/src/heap-profiler.cc |
@@ -148,7 +148,7 @@ class ReferencesExtractor : public ObjectVisitor { |
inside_array_ = true; |
FixedArray::cast(*o)->Iterate(this); |
inside_array_ = false; |
- } else { |
+ } else if ((*o)->IsHeapObject()) { |
profile_->StoreReference(cluster_, HeapObject::cast(*o)); |
} |
} |