es6features
es6features copied to clipboard
@@create was taken out a while back by this point.
trafficstars
Addresses #43
As noted in #43, I'm not sure this is the right change to address this - I'd like to include the details on how subclassing of builtins will be handled in ES6, but that section of the spec is still being finalized as we speak.
@lukehoban ping...
This does appear to be handled at this point. Subclassing works like this:
class A {
constructor() {
this.foo = 2; // okay
}
}
class B extends A {
constructor() {
// this.bar = baz; // ReferenceError (TDZ)
super();
this.baz = 2; // okay
}
}
This is currently how subclassing is handled AFAIK.