Index: test/cctest/test-heap-profiler.cc |
diff --git a/test/cctest/test-heap-profiler.cc b/test/cctest/test-heap-profiler.cc |
index a8a45b7b69e6c5ab458123dc0fa71946c8c772ba..7e3003eff3bc451685c8882ad6e54c6f50fb1a7a 100644 |
--- a/test/cctest/test-heap-profiler.cc |
+++ b/test/cctest/test-heap-profiler.cc |
@@ -1263,9 +1263,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); |
} |