Subclassing ES6 objects with ES5 syntax.
claude.pache at gmail.com
Fri Apr 24 06:18:09 UTC 2015
> Le 24 avr. 2015 à 03:25, Caitlin Potter <caitpotter88 at gmail.com> 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 new.target 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