Debian Codegraph @

packages/babel-plugin-proposal-class-properties/test/fixtures/private/logical-assignment/input.js

raw
1 class Foo {
2 #nullish = 0;
3 #and = 0;
4 #or = 0;
5
6 self() {
7 return this;
8 }
9
10 test() {
11 this.#nullish ??= 42;
12 this.#and &&= 0;
13 this.#or ||= 0;
14
15 this.self().#nullish ??= 42;
16 }
17 }