I've come across this same problem trying to replace JavaScriptCore with 
v8.  Did you ever find a solution?

It would be great to have FunctionTemplate::SetNamedPropertyHandler, as we 
have with ObjectTemplate, to intercept property accesses on the Function 
created by the template.  Does anyone know how this could be achieved, or 
is it just missing API?

Thanks,
Duncan

On Monday, June 21, 2010 11:01:59 PM UTC+9, Charles Lowell wrote:
>
> Hi there, 
>
> What, if any, is the best way to intercept property lookups on a 
> Function object? I'm reflecting ruby classes into javascript as 
> constructor functions, but the ruby classes themselves have 
> potentially dynamic properties just like any other object, and so I'd 
> like to be able to reuse the same named property handlers from my 
> normal ruby objects. I just can't figure out where to put them. 
>
> cheers, 
> Charles 
>

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

Reply via email to