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

private static method syntax error #223

Open
jdalton opened this issue Aug 19, 2022 · 1 comment
Open

private static method syntax error #223

jdalton opened this issue Aug 19, 2022 · 1 comment

Comments

@jdalton
Copy link

jdalton commented Aug 19, 2022

// 3633
/* Generated from: /test/language/statements/class/elements/get-access-of-missing-private-static-getter.js */
getAccessOfMissingPrivateStaticGetter: {
  class C {
    static set #f(v) {
      throw new Test262Error();
    }
    static getAccess() {
      return this.#f;
    }
  }
  assert.throws(TypeError, function() {
    C.getAccess();
  }, 'get operation on private accessor without getter should throw TypeError');
}

incorrectly throws:
[6:16]: Invalid key token

@3cp
Copy link
Member

3cp commented Aug 19, 2022

This one is yet to be supported. #214

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