diff --git a/include/v8.h b/include/v8.h index 71eb4ffc94..1a3177bb0d 100644 --- a/include/v8.h +++ b/include/v8.h @@ -1546,9 +1546,9 @@ enum AccessType { /** * Returns true if cross-context access should be allowed to the named - * property with the given key on the global object. + * property with the given key on the host object. */ -typedef bool (*NamedSecurityCallback)(Local global, +typedef bool (*NamedSecurityCallback)(Local host, Local key, AccessType type, Local data); @@ -1556,9 +1556,9 @@ typedef bool (*NamedSecurityCallback)(Local global, /** * Returns true if cross-context access should be allowed to the indexed - * property with the given index on the global object. + * property with the given index on the host object. */ -typedef bool (*IndexedSecurityCallback)(Local global, +typedef bool (*IndexedSecurityCallback)(Local host, uint32_t index, AccessType type, Local data);