Debian Codegraph @

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

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