I guess something like this may allow data passing to callback: diff --git a/include/v8.h b/include/v8.h index 171623a..afeb043 100644 --- a/include/v8.h +++ b/include/v8.h @@ -4322,7 +4322,8 @@ enum AccessType { * object. */ typedef bool (*AccessCheckCallback)(Local<Context> accessing_context, - Local<Object> accessed_object); + Local<Object> accessed_object, + Local<Value> data = Local<Value>()); /** diff --git a/src/isolate.cc b/src/isolate.cc index 40d4c9f..2d15420 100644 --- a/src/isolate.cc +++ b/src/isolate.cc @@ -843,7 +843,8 @@ bool Isolate::MayAccess(Handle<Context> accessing_context, VMState<EXTERNAL> state(this); if (callback) { return callback(v8::Utils::ToLocal(accessing_context), - v8::Utils::ToLocal(receiver)); + v8::Utils::ToLocal(receiver), + v8::Utils::ToLocal(data)); } Handle<Object> key = factory()->undefined_value(); return named_callback(v8::Utils::ToLocal(receiver), v8::Utils::ToLocal( key),
didn't tried it yet, but is idea correct or there was some other reason to drop data? -- -- v8-dev mailing list v8-dev@googlegroups.com 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 v8-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.