New ES6 Constructor Semantics and Usage Examples
December 15, 2014 ยท View on GitHub
Manual super: Alternative Design where subclass constructors do not automatically call superclass constructors
This Gist presents a new design of class-based object construction in ES6 that does not require use of the two-phase @@create protocol.
One of the characteristics of this proposal is that subclass constructors must explicitly super invoke their superclass's constructor if they wish to use the base class' object allocation and initialization logic.
An alternative version of this design automatically invokes the base constructor in most situations.
In addition to the material below, there is a seperate design rationale covering several key features that are common to both designs.