Debian Codegraph @

packages/babel-plugin-proposal-class-properties/test/fixtures/private/static-self-field/exec.js

raw
1 const f = class Foo {
2 static #x = Foo;
3 static y = Foo;
4
5 static extract() {
6 return {
7 x: Foo.#x,
8 y: Foo.y,
9 }
10 }
11 };
12
13 const { x, y } = f.extract();
14 expect(x).toBe(f)
15 expect(y).toBe(f)