mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
11 lines
128 B
JavaScript
11 lines
128 B
JavaScript
let foo;
|
|
class Cl {
|
|
set #foo(v) { return 1 }
|
|
test() {
|
|
foo = this.#foo = 2;
|
|
}
|
|
}
|
|
|
|
new Cl().test();
|
|
|
|
expect(foo).toBe(2); |