Making "super" work outside a literal?

Sean Eagan seaneagan1 at gmail.com
Thu Jun 23 07:43:36 PDT 2011


A couple corrections below:

On Thu, Jun 23, 2011 at 9:14 AM, Sean Eagan <seaneagan1 at gmail.com> wrote:
> When a super delegate function is subsequently accessed from an
> object, e.g. o.methodThatUsesSuper or
> Object.getOwnPropertyDescriptor(o,
> "accessorWithGetterOrSetterThatUsesSuper"), this resolves to the
> [[TargetFunction]] internal property of the super delegate function.

[[TargetFunction]] should be [[SuperFunction]]

> The equivalence class of a super function in  == and === consists of
> the super function and all of its corresponding super delegate
> functions

Actually, it's simpler than this.  One can never obtain a reference to
a super delegate function, only call it as a method or accessor getter
or setter.

Cheers,
Sean Eagan


More information about the es-discuss mailing list