mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
14 lines
202 B
JavaScript
14 lines
202 B
JavaScript
const result = new class {
|
|
#baz;
|
|
constructor() {
|
|
this.#baz = 1;
|
|
}
|
|
#bar() {
|
|
return this.#baz + 2;
|
|
}
|
|
foo() {
|
|
return this.#bar() + 3;
|
|
}
|
|
}().foo();
|
|
expect(result).toBe(1 + 2 + 3);
|