Debian Codegraph @

packages/babel-plugin-proposal-private-methods/test/fixtures/private-static-method/read-only/exec.js

raw
1 class A {
2 static #method() {}
3
4 run() {
5 expect(() => A.#method = 2).toThrow(TypeError);
6 expect(() => ([A.#method] = [2])).toThrow(TypeError);
7 }
8 }
9
10