Debian Codegraph @

packages/babel-plugin-proposal-class-properties/test/fixtures/private-loose/instance/exec.js

raw symbols SCIP
1 class Foo {
2 #bar = "foo";
3
4 test() {
5 return this.#bar;
6 }
7
8 static test(foo) {
9 return foo.#bar;
10 }
11 }
12
13 const f = new Foo();
14 expect(f.test()).toBe("foo");
15 expect(Foo.test(f)).toBe("foo");
16 expect("bar" in f).toBe(false);