Debian Codegraph @

packages/babel-plugin-proposal-class-properties/test/fixtures/private/nested-class-computed/exec.js

raw
1 class Foo {
2 #foo = 1;
3
4 test() {
5 class Nested {
6 [this.#foo]() {
7 }
8 }
9
10 return new Nested();
11 }
12 }
13
14 const f = new Foo();
15 expect(() => {
16 f.test();
17 }).not.toThrow();