r-proto-class

Jake Verbaten raynos2 at gmail.com
Tue Nov 15 06:13:39 PST 2011


>
> Even with adding properties to objects (which is a no-no for ES.next),
> dynamic super is never particularly elegant. This was the best solution I
> could come up with and it’s not pretty: https://gist.github.com/1331748
>

If we could get away with manipulating the prototype chain at run time then
super can be implemented as https://gist.github.com/1367167

The idea of temporarily plucking the current [[Prototype]] out of the
chain, is how I envision super should work.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20111115/c5e58496/attachment.html>


More information about the es-discuss mailing list