Index: test/cctest/test-weakmaps.cc |
diff --git a/test/cctest/test-weakmaps.cc b/test/cctest/test-weakmaps.cc |
index 1dd43a81247ed79a37cd670039f32f76d0ca71da..499286c46f4227c5dff3580bf5442069e7f7c00a 100644 |
--- a/test/cctest/test-weakmaps.cc |
+++ b/test/cctest/test-weakmaps.cc |
@@ -65,11 +65,11 @@ static void PutIntoWeakMap(Handle<JSWeakMap> weakmap, |
static int NumberOfWeakCalls = 0; |
static void WeakPointerCallback(v8::Isolate* isolate, |
- v8::Persistent<v8::Value> handle, |
+ v8::Persistent<v8::Value>* handle, |
void* id) { |
ASSERT(id == reinterpret_cast<void*>(1234)); |
NumberOfWeakCalls++; |
- handle.Dispose(isolate); |
+ handle->Dispose(isolate); |
} |
@@ -114,8 +114,8 @@ TEST(Weakness) { |
HandleScope scope(isolate); |
global_handles->MakeWeak(key.location(), |
reinterpret_cast<void*>(1234), |
- NULL, |
- &WeakPointerCallback); |
+ &WeakPointerCallback, |
+ NULL); |
} |
CHECK(global_handles->IsWeak(key.location())); |