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

SuperCall incorrectly tolerated outside of class constructors #3535

Open
jugglinmike opened this issue Feb 21, 2021 · 0 comments
Open

SuperCall incorrectly tolerated outside of class constructors #3535

jugglinmike opened this issue Feb 21, 2021 · 0 comments
Labels

Comments

@jugglinmike
Copy link
Member

As of version 2.12.0, JSHint incorrectly allows SuperCall expression to appear in class methods.

For example, the following text contains 3 syntax errors, but JSHint does not recognize any of them:

/* jshint esversion: 6 */
class C {
  method() {
    super();
  }
  static staticMethod() {
    super();
  }
  *generatorMethod() {
    super();
    yield;
  }
}
@jugglinmike jugglinmike added the P3 label Feb 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant