Specifically, I'm looking for a way to call an super class ES6 constructor
without violating the "new" rule (TypeError: Class constructor A cannot be
invoked without 'new'):
class A {
}
function B() {
A.call(this); // this breaks
}
B.prototype = Object.create(A.prototype);
Without something like this, it isn't possible to migrate a large code base
except "leaves" first. Which is a bad place to be.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss