Hi, how to access data passed to SetAccessCheckCallback from 
AccessCheckCallback?

There are no data AccessCheckCallback passed to AccessCheckCallback, while 
{Named,Indexed}SecurityCallback had them before. For integration purposes 
having data is mandatory for me.

In current v8 master 
(https://github.com/v8/v8/tree/0eb083155c83e2272eb2946fc4bfe0b3eb400481):

from https://github.com/v8/v8/blob/master/include/v8.h#L4754:
  /**
   * Sets access check callback on the object template and enables access
   * checks.
   *
   * When accessing properties on instances of this object template,
   * the access check callback will be called to determine whether or
   * not to allow cross-context access to the properties.
   */
  void SetAccessCheckCallback(AccessCheckCallback callback,
                              Local<Value> data = Local<Value>());


from https://github.com/v8/v8/blob/master/include/v8.h#L4324
/**
 * Returns true if the given context should be allowed to access the given
 * object.
 */
typedef bool (*AccessCheckCallback)(Local<Context> accessing_context,
                                    Local<Object> accessed_object);

Thanks!

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to