From a0bf4c55c465011507924f5dad865263085fc201 Mon Sep 17 00:00:00 2001 From: "antonm@chromium.org" Date: Fri, 18 Sep 2009 12:18:08 +0000 Subject: [PATCH] Fix documentation of security callbacks. Actually 1st parameter could be any object in prototype chain from this to actual holder, not only a the global object. git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2937 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- include/v8.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/v8.h b/include/v8.h index 71eb4ff..1a3177b 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); -- 2.7.4