V8 doesn't support this directly but I can think of two ways to get
something approaching accessors on functions.  If you only need a
getter it can be implemented by replacing the __proto__ of the
function with an object that has the getter.  That won't work for
setters though.  Alternatively, if you don't need to be able to call
the function as a constructor you can use an object with a
CallAsFunction handler instead of a real function.

On Thu, Dec 18, 2008 at 7:01 PM,  <[email protected]> wrote:
>
> Hi,
>
> I'm trying to do the same. Vlad, did you ever figure it out?
>
> Cheers,
> Neb
> >
>

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

Reply via email to