super() is shorthand for super[MethodName]() where MethodName is in our
case statically computed. In the spec it is set in the environment record,
taken from the function objects [[MethodName]] slot.


On Wed, Dec 4, 2013 at 7:26 PM, johnjbarton <notifications@github.com>wrote:

> In test/feature/Classes/SuperChangeProto.js:
>
> > @@ -0,0 +1,20 @@
> > +var log = "";
> > +
> > +class Base {
> > +  p() { log += "[Base]"; }
> > +}
> > +
> > +class OtherBase {
> > +  p() { log += "[OtherBase]"; }
> > +}
> > +class Derived extends Base {
> > +  p() {
> > +    log += "[Derived]";
> > +    super();
>
> Unfortunately I am no longer able to understand the spec. What does
> super() do?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/google/traceur-compiler/pull/512/files#r8116583>
> .
>



-- 
erik