Debian Codegraph @

packages/babel-plugin-proposal-class-properties/test/fixtures/private/destructuring-object-pattern-static/exec.js

raw
1 class Foo {
2 static #client
3
4 constructor(props) {
5 ;({ client: Foo.#client } = props)
6 }
7
8 getClient() {
9 return Foo.#client;
10 }
11 }
12
13 const foo = new Foo({ client: 'bar' });
14 expect(foo.getClient()).toBe('bar');