Debian Codegraph @

packages/babel-plugin-proposal-private-methods/test/fixtures/private-method/before-fields/exec.js

raw
1 class Cl {
2 prop = this.#method(1);
3
4 #priv = this.#method(2);
5
6 #method(x) {
7 return x;
8 }
9
10 getPriv() {
11 return this.#priv;
12 }
13 }
14
15 expect(new Cl().prop).toBe(1);
16 expect(new Cl().getPriv()).toBe(2);