mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
18 lines
203 B
JavaScript
18 lines
203 B
JavaScript
class Foo {
|
|
#nullish = 0;
|
|
#and = 0;
|
|
#or = 0;
|
|
|
|
self() {
|
|
return this;
|
|
}
|
|
|
|
test() {
|
|
this.#nullish ??= 42;
|
|
this.#and &&= 0;
|
|
this.#or ||= 0;
|
|
|
|
this.self().#nullish ??= 42;
|
|
}
|
|
}
|