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

Static property #16

Open
ulyssesric opened this issue Jun 16, 2023 · 1 comment
Open

Static property #16

ulyssesric opened this issue Jun 16, 2023 · 1 comment

Comments

@ulyssesric
Copy link

Apparently the latest version failed to handle static fields in class.

Try to minify sample codes from developer.mozilla.org:

class ClassWithStaticMethod {
  static staticProperty = 'someValue';
  static staticMethod() {
    return 'static method has been called.';
  }
  static {
    console.log('Class static initialization block called');
  }
}

and get the error: "Parse error: Unexpected token: operator (=)"

@Skalman
Copy link
Owner

Skalman commented Jun 28, 2023

The issue is that we're stuck on an old version. I'll merge a PR updating to the latest version, if you submit one.

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

No branches or pull requests

2 participants