Thanks Stephan. Interceptors do seem to handle functions, but, I
couldn't figure out a way to access the function arguments. I wish
there were an example for such a scenario.

On Jul 16, 11:22 am, Stephan Beal <sgb...@googlemail.com> wrote:
> On Thu, Jul 16, 2009 at 5:06 PM, Ravi <chinn...@yahoo.com> wrote:
> > The property interceptors provide a way to handle any object property
> > with a callback. I was wondering if there is something similar to
> > handle any object method.
>
> In theory, since a method is-a property, methods can also be handled via
> interceptors. i haven't tried it, but since JS does not syntactically
> differentiate between (a.b = c) based on the types of a.b and c, then
> interceptors "should" work on methods in the same way they work on
> non-method members.
>
> In theory, of course.
>
> --
> ----- stephan bealhttp://wanderinghorse.net/home/stephan/
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to