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
13 lines
318 B
JavaScript
13 lines
318 B
JavaScript
var _class;
|
|
var _ = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("_");
|
|
class Foo {}
|
|
_class = Foo;
|
|
Object.defineProperty(Foo, _, {
|
|
writable: true,
|
|
value: 42
|
|
});
|
|
// static block can not be transformed as `#_` here
|
|
|
|
_class.foo = babelHelpers.classPrivateFieldLooseBase(_class, _)[_];
|
|
expect(Foo.foo).toBe(42);
|