Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com> Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
27 lines
526 B
JavaScript
27 lines
526 B
JavaScript
var _m = /*#__PURE__*/new WeakMap();
|
|
|
|
class Foo {
|
|
constructor() {
|
|
babelHelpers.classPrivateFieldInitSpec(this, _m, {
|
|
writable: true,
|
|
value: void 0
|
|
});
|
|
}
|
|
|
|
init() {
|
|
babelHelpers.classPrivateFieldSet(this, _m, (...args) => args);
|
|
}
|
|
|
|
static test() {
|
|
const f = new Foo();
|
|
f.init();
|
|
return babelHelpers.classPrivateFieldGet(f, _m)?.apply(f, arguments);
|
|
}
|
|
|
|
static testNull() {
|
|
const f = new Foo();
|
|
return babelHelpers.classPrivateFieldGet(f, _m)?.apply(f, arguments);
|
|
}
|
|
|
|
}
|