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
11 lines
134 B
JavaScript
11 lines
134 B
JavaScript
class Foo {
|
|
static bar = 42;
|
|
static {
|
|
this.foo = Foo.bar;
|
|
}
|
|
}
|
|
const oldFoo = Foo;
|
|
Foo = null;
|
|
|
|
expect(oldFoo.foo).toBe(42);
|