Axel Rauschmayer axel at
Fri Mar 8 19:13:59 PST 2013

> Now, how transpilers are going to solve Object.mixin super call? 'cause once again, that should be solved runtime and I am curious, without caller, how transpilers are thinking to solve that.

You can do the following: = function me(x) {
        var ssuper = me.homeObject.__proto__;
        return 1 +, x);

Additionally, one would have to make the following assignment for each method m of SubClass.prototype:

    SubClass.prototype.m.homeObject = SubClass.prototype;

Rationale: a method needs to be aware of its (static) position in the prototype chain if it wants to make a proper super-reference.

More information:

Dr. Axel Rauschmayer
axel at


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list