Debian Codegraph @

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

raw
1 class Cl {
2 async #foo() {
3 return 2;
4 }
5
6 test() {
7 return this.#foo();
8 }
9 }
10
11 return new Cl().test().then(val => {
12 expect(val).toBe(2);
13 });