Revision: 2937 Author: [email protected] Date: Fri Sep 18 05:18:08 2009 Log: 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. http://code.google.com/p/v8/source/detail?r=2937 Modified: /branches/bleeding_edge/include/v8.h ======================================= --- /branches/bleeding_edge/include/v8.h Thu Sep 17 01:58:06 2009 +++ /branches/bleeding_edge/include/v8.h Fri Sep 18 05:18:08 2009 @@ -1546,9 +1546,9 @@ /** * 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<Object> global, +typedef bool (*NamedSecurityCallback)(Local<Object> host, Local<Value> key, AccessType type, Local<Value> data); @@ -1556,9 +1556,9 @@ /** * 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<Object> global, +typedef bool (*IndexedSecurityCallback)(Local<Object> host, uint32_t index, AccessType type, Local<Value> data); --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
