mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
15 lines
221 B
JavaScript
15 lines
221 B
JavaScript
class Foo {
|
|
static #client
|
|
|
|
constructor(props) {
|
|
;({ client: Foo.#client } = props)
|
|
}
|
|
|
|
getClient() {
|
|
return Foo.#client;
|
|
}
|
|
}
|
|
|
|
const foo = new Foo({ client: 'bar' });
|
|
expect(foo.getClient()).toBe('bar');
|