Debian Codegraph @

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

raw
1 class A {
2 static #self = this;
3 static #getA = () => this;
4
5 static extract() {
6 return { self: A.#self, getA: A.#getA };
7 }
8 }
9
10 const { self, getA } = A.extract();
11
12 expect(self).toBe(A);
13 expect(getA()).toBe(A);