mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
* add test cases * fix: memoise class binding when lowering static elements and private methods * update test fixtures * update test fixtures
12 lines
238 B
JavaScript
12 lines
238 B
JavaScript
var _class;
|
|
class Foo {}
|
|
_class = Foo;
|
|
var _ = {
|
|
writable: true,
|
|
value: 42
|
|
};
|
|
// static block can not be transformed as `#_` here
|
|
|
|
_class.foo = babelHelpers.classStaticPrivateFieldSpecGet(_class, _class, _);
|
|
expect(Foo.foo).toBe(42);
|