Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index e01e8f19a941824b3e4c244c4d7debda3789ef72..f7cbb8294d66d958ee16762a2b64c23646272e8f 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -3353,8 +3353,8 @@ class PhantomStdMapTraits : public v8::StdMapTraits<K, V> { |
v8::Object::GetAlignedPointerFromInternalField(value, 0)); |
} |
static void DisposeWeak( |
- v8::Isolate* isolate, |
- const v8::WeakCallbackInfo<WeakCallbackDataType>& info, K key) { |
+ const v8::WeakCallbackInfo<WeakCallbackDataType>& info) { |
+ K key = KeyFromWeakCallbackInfo(info); |
CHECK_EQ(IntKeyToVoidPointer(key), info.GetInternalField(0)); |
DisposeCallbackData(info.GetParameter()); |
} |