Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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

wants to merge 1 commit into from

Conversation

dead-claudia
Copy link

Addresses #43

@lukehoban
Copy link
Owner

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.

@dead-claudia
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants