Did you put tmpl as a prototype of another object? If that's the case,
the behavior you described is expected. It is used to implement
property shadowing.

On Wed, Nov 5, 2008 at 8:02 AM, Anthony Shipman <[EMAIL PROTECTED]> wrote:
>
> I've tried an accessor with
>  tmpl->SetAccessor(String::New("x"), xGetter);
> and attempts to write to the property silently fail.
>
> But if I write
>  tmpl->SetAccessor(String::New("x"), xGetter, 0, Handle<Value>(), DEFAULT,
>        (PropertyAttribute)(ReadOnly|DontDelete))
>
> then I can write to the property and a subsequent read returns the value that
> I wrote.
> --
> Anthony Shipman                    Mamas don't let your babies
> [EMAIL PROTECTED]                   grow up to be outsourced.
>
> >
>

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

Reply via email to