Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 8cb85a7c0478324a163f4d955d3f2d4961c82e03..64a003e049506ef8f54245fe83f72510ff04be89 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -15205,7 +15205,7 @@ THREADED_TEST(GetHeapStatistics) { |
v8::HeapStatistics heap_statistics; |
CHECK_EQ(static_cast<int>(heap_statistics.total_heap_size()), 0); |
CHECK_EQ(static_cast<int>(heap_statistics.used_heap_size()), 0); |
- v8::V8::GetHeapStatistics(&heap_statistics); |
+ c1->GetIsolate()->GetHeapStatistics(&heap_statistics); |
CHECK_NE(static_cast<int>(heap_statistics.total_heap_size()), 0); |
CHECK_NE(static_cast<int>(heap_statistics.used_heap_size()), 0); |
} |