Files
Huáng JùnliàngandGitHub 980dcb8b01 Memoize class binding when compiling private methods and static elements (#15701)
* add test cases

* fix: memoise class binding when lowering static elements and private methods

* update test fixtures

* update test fixtures
2023-07-19 17:59:21 -04:00

12 lines
146 B
JavaScript

class A {
get #getA() { return A };
get getA() {
return this.#getA;
}
}
const oldA = A;
A = null;
expect(new oldA().getA).toBe(oldA);