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 beal
http://wanderinghorse.net/home/stephan/

--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to