mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* add test cases * fix: memoise class binding when lowering static elements and private methods * update test fixtures * update test fixtures
16 lines
226 B
JavaScript
16 lines
226 B
JavaScript
class A {
|
|
static self = this;
|
|
static getA = () => this;
|
|
}
|
|
|
|
const { self, getA } = A;
|
|
|
|
expect(self).toBe(A);
|
|
expect(getA()).toBe(A);
|
|
|
|
const oldA = A;
|
|
A = null;
|
|
|
|
expect(oldA.self).toBe(oldA);
|
|
expect(oldA.getA()).toBe(oldA);
|