mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
27 lines
705 B
JavaScript
27 lines
705 B
JavaScript
function classFactory() {
|
|
var _class, _foo, _bar;
|
|
return _foo = /*#__PURE__*/new WeakMap(), (_class = class Foo {
|
|
constructor() {
|
|
babelHelpers.classPrivateFieldInitSpec(this, _foo, {
|
|
writable: true,
|
|
value: "foo"
|
|
});
|
|
}
|
|
instance() {
|
|
return babelHelpers.classPrivateFieldGet(this, _foo);
|
|
}
|
|
static() {
|
|
return babelHelpers.classStaticPrivateFieldSpecGet(Foo, _class, _bar);
|
|
}
|
|
static instance(inst) {
|
|
return babelHelpers.classPrivateFieldGet(inst, _foo);
|
|
}
|
|
static static() {
|
|
return babelHelpers.classStaticPrivateFieldSpecGet(Foo, _class, _bar);
|
|
}
|
|
}, _bar = {
|
|
writable: true,
|
|
value: "bar"
|
|
}, _class);
|
|
}
|