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

Show an error when this used before super #6197

Closed
saschanaz opened this issue Dec 22, 2015 · 1 comment
Closed

Show an error when this used before super #6197

saschanaz opened this issue Dec 22, 2015 · 1 comment
Labels
Duplicate An existing issue was already created

Comments

@saschanaz
Copy link
Contributor

I'm not 100% sure this is by ES6 spec but the following code errors on Edge and Firefox Nightly:

new (class extends Promise {
  constructor() {
    let newThis = this; // Edge: Use before declaration, Firefox: |this| used uninitialized in anonymous class constructor
    super((resolve, reject) => resolve());
  }
})()
@saschanaz saschanaz changed the title Throw error when this used before super Show error when this used before super Dec 22, 2015
@saschanaz saschanaz changed the title Show error when this used before super Show an error when this used before super Dec 22, 2015
@vladima vladima added the Duplicate An existing issue was already created label Dec 22, 2015
@vladima
Copy link
Contributor

vladima commented Dec 22, 2015

duplicate of #4211

@vladima vladima closed this as completed Dec 22, 2015
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

2 participants