Making "super" work outside a literal?

Axel Rauschmayer axel at rauschma.de
Sun Jun 19 19:32:28 PDT 2011


>> 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

axel at rauschma.de
twitter.com/rauschma

home: rauschma.de
blog: 2ality.com





More information about the es-discuss mailing list