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