Commit a0bf4c55 authored by antonm@chromium.org's avatar antonm@chromium.org

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
parent 9b4c9509
...@@ -1546,9 +1546,9 @@ enum AccessType { ...@@ -1546,9 +1546,9 @@ enum AccessType {
/** /**
* Returns true if cross-context access should be allowed to the named * 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, Local<Value> key,
AccessType type, AccessType type,
Local<Value> data); Local<Value> data);
...@@ -1556,9 +1556,9 @@ typedef bool (*NamedSecurityCallback)(Local<Object> global, ...@@ -1556,9 +1556,9 @@ typedef bool (*NamedSecurityCallback)(Local<Object> global,
/** /**
* Returns true if cross-context access should be allowed to the indexed * 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, uint32_t index,
AccessType type, AccessType type,
Local<Value> data); Local<Value> data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment