fkling / astexplorer

A web tool to explore the ASTs generated by various parsers.
https://astexplorer.net/
MIT License
6.14k stars 729 forks source link

Update espree? #640

Closed ajvincent closed 1 year ago

ajvincent commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. In AST Explorer, select espree for the parsing engine.
  2. Use this source code:
class Foo {
  #forward(methodName, args) {
    return true
  }

  forward(...args) {
    return this.#forward("apply", args);
  }
}

Expected behavior espree parses this class.

Actual behavior Unexpected character '#'

Screenshots If applicable, add screenshots to help explain your problem.

Browser (please complete the following information):

astexplorer settings:

Additional context espree 6.2.1 is the available version on astexplorer.net, which was released two years ago. Private class fields are incredibly useful, so an update would be helpful. The current version is 9.3.1.