>> I don’t know how problematic this would be, but if "super" is an internal 
>> property of a function, then it could be updated whenever such a function is 
>> set as the value of a property.
> 
> No, that doesn't work. Both for cases where the function author really did 
> mean the proto-object of the literal-induced object surrounding the function, 
> and in efficiency terms (we do not mutate the RHS of assignment depending on 
> the LHS's Reference Base, e.g.).
> 
> If you really want to change what super means in a function expressed in an 
> object initialiser, I'd like to see the exact use-case.

The only use case would be assigning a function that uses "super" to a property.

-- 
Dr. Axel Rauschmayer

a...@rauschma.de
twitter.com/rauschma

home: rauschma.de
blog: 2ality.com



_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to