On Tue, Apr 21, 2015 at 2:56 AM, Francisco Tolmasky <[email protected]> wrote:
> I'm setting up a getter, and for some reason in JS it "appears" like a
> value:
>
> tpl->InstanceTemplate()->SetAccessor(NanNew("size"), Size);
>
> Then in JS:
>
> Object.getOwnPropertyDescriptor(bridgedObject, "size")
>> { value:1, writabe:... }
>
> Is this expected behavior? It otherwise works fine (calls size accessor
> appropriately, etc).

I believe it has always worked that way in V8 so I assume it's the
expected behavior.  An accessor is not a getter, if that is what
you're wondering; they're even more magical.

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to