Skip to content

Private Getters and Setters Throwing SyntaxError: Unexpected token #7

@jtwebb

Description

@jtwebb

I've tried using this plugin directly and the stage3 plugin and both throw an error (SyntaxError: Unexpected token) for private getters and setters. I just have a simple example:

class MyClass {
  get #myMethod() {
    return 'hello';
  }
}

The error is thrown on the line of the getter declaration, right after the get keyword. Just to make sure I wasn't using it wrong, I cloned the repo and ran the tests and it looks like they're failing for the private getters and setters too. Has this feature been removed from the plugin?

Screen Shot 2021-06-08 at 11 39 36 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions