| Index: src/api.cc | 
| diff --git a/src/api.cc b/src/api.cc | 
| index 7fce39e3a5182d996873e64814e3c8c453a0b0cb..f1fe6eaabed1fdabfc6e29fd2f2cb7aabe560e52 100644 | 
| --- a/src/api.cc | 
| +++ b/src/api.cc | 
| @@ -5971,6 +5971,14 @@ void Isolate::Exit() { | 
|  | 
| void Isolate::GetHeapStatistics(HeapStatistics* heap_statistics) { | 
| i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); | 
| +  if (!isolate->IsInitialized()) { | 
| +    heap_statistics->total_heap_size_ = 0; | 
| +    heap_statistics->total_heap_size_executable_ = 0; | 
| +    heap_statistics->total_physical_size_ = 0; | 
| +    heap_statistics->used_heap_size_ = 0; | 
| +    heap_statistics->heap_size_limit_ = 0; | 
| +    return; | 
| +  } | 
| i::Heap* heap = isolate->heap(); | 
| heap_statistics->total_heap_size_ = heap->CommittedMemory(); | 
| heap_statistics->total_heap_size_executable_ = | 
|  |