Subclassing ES6 objects with ES5 syntax.

Claude Pache claude.pache at
Fri Apr 24 06:18:09 UTC 2015

> Le 24 avr. 2015 à 03:25, Caitlin Potter <caitpotter88 at> a écrit :
> So, why exactly is SuperCall forbidden in function bodies? If people work around it with Reflect.construct anyways, it just seems nice to use SuperCall instead — at least if is defined

Note that `super(...)` will try to initialise the `this` binding—which won’t work in plain functions. 


More information about the es-discuss mailing list