mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* Add test * Avoid unnecessary parens around sequence expressions * Fix test * Re-build `@babel/runtime`
23 lines
598 B
JavaScript
23 lines
598 B
JavaScript
function classFactory() {
|
|
var _Foo, _foo, _bar;
|
|
return _foo = /*#__PURE__*/new WeakMap(), _Foo = class Foo {
|
|
constructor() {
|
|
babelHelpers.classPrivateFieldInitSpec(this, _foo, "foo");
|
|
}
|
|
instance() {
|
|
return babelHelpers.classPrivateFieldGet2(_foo, this);
|
|
}
|
|
static() {
|
|
return babelHelpers.assertClassBrand(_Foo, Foo, _bar)._;
|
|
}
|
|
static instance(inst) {
|
|
return babelHelpers.classPrivateFieldGet2(_foo, inst);
|
|
}
|
|
static static() {
|
|
return babelHelpers.assertClassBrand(_Foo, Foo, _bar)._;
|
|
}
|
|
}, _bar = {
|
|
_: "bar"
|
|
}, _Foo;
|
|
}
|