Index: test/cctest/test-heap-profiler.cc |
diff --git a/test/cctest/test-heap-profiler.cc b/test/cctest/test-heap-profiler.cc |
index 1d710a4c85b2604100d67ed9690c7c63483ab168..40ecc0252ff66d7c051176189da67c6f81849af8 100644 |
--- a/test/cctest/test-heap-profiler.cc |
+++ b/test/cctest/test-heap-profiler.cc |
@@ -1586,9 +1586,9 @@ bool HasWeakGlobalHandle() { |
static void PersistentHandleCallback(v8::Isolate* isolate, |
- v8::Persistent<v8::Value> handle, |
+ v8::Persistent<v8::Value>* handle, |
void*) { |
- handle.Dispose(isolate); |
+ handle->Dispose(isolate); |
} |
@@ -1600,7 +1600,9 @@ TEST(WeakGlobalHandle) { |
v8::Persistent<v8::Object> handle = |
v8::Persistent<v8::Object>::New(env->GetIsolate(), v8::Object::New()); |
- handle.MakeWeak(env->GetIsolate(), NULL, PersistentHandleCallback); |
+ handle.MakeWeak<v8::Value, void>(env->GetIsolate(), |
+ NULL, |
+ PersistentHandleCallback); |
CHECK(HasWeakGlobalHandle()); |
} |