Index: test/cctest/test-accessors.cc |
diff --git a/test/cctest/test-accessors.cc b/test/cctest/test-accessors.cc |
index 14303e2371c58684d937f420a64db55c222db42a..fd620a95a613608167b23403933e73f03148edc9 100644 |
--- a/test/cctest/test-accessors.cc |
+++ b/test/cctest/test-accessors.cc |
@@ -610,8 +610,8 @@ THREADED_TEST(Regress433458) { |
static bool security_check_value = false; |
-static bool SecurityTestCallback(Local<v8::Object> global, Local<Value> name, |
- v8::AccessType type, Local<Value> data) { |
+static bool SecurityTestCallback(Local<v8::Context> accessing_context, |
+ Local<v8::Object> accessed_object) { |
return security_check_value; |
} |
@@ -627,7 +627,7 @@ TEST(PrototypeGetterAccessCheck) { |
fun_templ->InstanceTemplate()->SetAccessorProperty(v8_str("foo"), |
getter_templ); |
auto obj_templ = v8::ObjectTemplate::New(isolate); |
- obj_templ->SetAccessCheckCallbacks(SecurityTestCallback, nullptr); |
+ obj_templ->SetAccessCheckCallback(SecurityTestCallback); |
env->Global()->Set(v8_str("Fun"), fun_templ->GetFunction()); |
env->Global()->Set(v8_str("obj"), obj_templ->NewInstance()); |
env->Global()->Set(v8_str("obj2"), obj_templ->NewInstance()); |