Debian Codegraph @

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

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