mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
17 lines
268 B
JavaScript
17 lines
268 B
JavaScript
class Cl {
|
|
static #privateMethodA() {
|
|
const i = 40;
|
|
return i;
|
|
}
|
|
|
|
static #privateMethodB() {
|
|
const i = 2;
|
|
return i;
|
|
}
|
|
|
|
publicMethod() {
|
|
return Cl.#privateMethodA() + Cl.#privateMethodB();
|
|
}
|
|
}
|
|
|
|
expect((new Cl).publicMethod()).toEqual(42); |