Index: test/cctest/test-weakmaps.cc |
diff --git a/test/cctest/test-weakmaps.cc b/test/cctest/test-weakmaps.cc |
index 7c98c573c3605c02899091ac867664248a7b5884..edbd94cc1e2570482b5a7cb439a5297411bccc83 100644 |
--- a/test/cctest/test-weakmaps.cc |
+++ b/test/cctest/test-weakmaps.cc |
@@ -57,10 +57,12 @@ static void PutIntoWeakMap(Handle<JSWeakMap> weakmap, |
} |
static int NumberOfWeakCalls = 0; |
-static void WeakPointerCallback(v8::Persistent<v8::Value> handle, void* id) { |
+static void WeakPointerCallback(v8::Isolate* isolate, |
+ v8::Persistent<v8::Value> handle, |
+ void* id) { |
ASSERT(id == reinterpret_cast<void*>(1234)); |
NumberOfWeakCalls++; |
- handle.Dispose(); |
+ handle.Dispose(isolate); |
} |
@@ -102,6 +104,7 @@ TEST(Weakness) { |
v8::HandleScope scope; |
global_handles->MakeWeak(key.location(), |
reinterpret_cast<void*>(1234), |
+ NULL, |
&WeakPointerCallback); |
} |
CHECK(global_handles->IsWeak(key.location())); |