On 13 December 2013 10:01, Ting-Yu Chou <[email protected]> wrote:
>> > Is it possible that both a map and a setter in ancestor existed?
>>
>> Yes, why shouldn't it? There are various ways to achieve this in
>> JavaScript.
>
> Got it, but would you mind to show me a short example?

function C() {}
var o = new C
o.a = 1
Object.defineProperty(C.prototype, 'a', {set: function() {}})
o = new C
o.a = 2

/Andreas

-- 
-- 
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/groups/opt_out.

Reply via email to