mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
13 lines
310 B
JavaScript
13 lines
310 B
JavaScript
var _Foo;
|
|
var _ = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("_");
|
|
class Foo {}
|
|
_Foo = Foo;
|
|
Object.defineProperty(Foo, _, {
|
|
writable: true,
|
|
value: 42
|
|
});
|
|
// static block can not be transformed as `#_` here
|
|
|
|
_Foo.foo = babelHelpers.classPrivateFieldLooseBase(_Foo, _)[_];
|
|
expect(Foo.foo).toBe(42);
|