Sorry if I bump this one (tell me if I should file a new issue instead), 
but I have a use case for the above scenario.

I would like to register Interceptors on all objects in a context. As 
ObjectTemplate has a method to register them
via SetNamedPropertyHandler I thought of adding my interceptors to all 
templates (that is the one for the global
object and all built in types).
Unfortunately this is not possible as there are no templates for the built 
in types (or I don't know how to retrieve them).
Can someone tell me, if there is another way to register interceptors on 
all objects in a context?

I also thought of just adding them to all instances that are there in a 
context, but instances only provide the SetAccessor
method which only allows to intercept one particular property instead of 
all. Or is there some kind of wildcard for
SetAccessor?

Regards
Jonas

Am Dienstag, 26. April 2011 15:49:55 UTC+2 schrieb (unbekannt):
>
> Updates:
>         Status: PendingFurtherInfo
>
> Comment #1 on issue 1335 by [email protected]: Missing templates in V8 API
> http://code.google.com/p/v8/issues/detail?id=1335
>
> I would like to understand the motivation for wanting to do this. It seems 
>  
> to me that both in terms of runtime and lines of code it would be just as  
> good to create and set the value on the global object after creating and  
> entering the context?
>
>

-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to