Index: test/cctest/test-heap-profiler.cc |
diff --git a/test/cctest/test-heap-profiler.cc b/test/cctest/test-heap-profiler.cc |
index 6223d8b2c95dfacf27ec1276d3df9a56e1e6d7b4..453a3dbeeffcb3019ee78004afe2c6b524900a3d 100644 |
--- a/test/cctest/test-heap-profiler.cc |
+++ b/test/cctest/test-heap-profiler.cc |
@@ -1302,9 +1302,10 @@ TEST(NoHandleLeaks) { |
CompileRun("document = { URL:\"abcdefgh\" };"); |
v8::Handle<v8::String> name(v8_str("leakz")); |
- int count_before = i::HandleScope::NumberOfHandles(); |
+ i::Isolate* isolate = i::Isolate::Current(); |
+ int count_before = i::HandleScope::NumberOfHandles(isolate); |
v8::HeapProfiler::TakeSnapshot(name); |
- int count_after = i::HandleScope::NumberOfHandles(); |
+ int count_after = i::HandleScope::NumberOfHandles(isolate); |
CHECK_EQ(count_before, count_after); |
} |