Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 3657a81b1ac80d299a91b4ea40b33eafaadb0770..272a08224135aee6cf5ec1b603086f849da4afac 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -4325,8 +4325,10 @@ enum AccessType { |
* object. |
*/ |
typedef bool (*AccessCheckCallback)(Local<Context> accessing_context, |
- Local<Object> accessed_object); |
- |
+ Local<Object> accessed_object, |
+ Local<Value> data); |
+typedef bool (*DeprecatedAccessCheckCallback)(Local<Context> accessing_context, |
+ Local<Object> accessed_object); |
/** |
* Returns true if cross-context access should be allowed to the named |
@@ -4756,6 +4758,10 @@ class V8_EXPORT ObjectTemplate : public Template { |
*/ |
void SetAccessCheckCallback(AccessCheckCallback callback, |
Local<Value> data = Local<Value>()); |
+ V8_DEPRECATE_SOON( |
+ "Use SetAccessCheckCallback with new AccessCheckCallback signature.", |
+ void SetAccessCheckCallback(DeprecatedAccessCheckCallback callback, |
+ Local<Value> data = Local<Value>())); |
V8_DEPRECATED( |
"Use SetAccessCheckCallback instead", |