es6features icon indicating copy to clipboard operation
es6features copied to clipboard

@@create was taken out a while back by this point.

Open dead-claudia opened this issue 10 years ago • 2 comments
trafficstars

Addresses #43

dead-claudia avatar Jan 26 '15 11:01 dead-claudia

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 avatar Jan 29 '15 06:01 lukehoban

@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.

dead-claudia avatar May 06 '15 21:05 dead-claudia