Ajay Poshak b1923fd140
Add a check for privateMap's existence (#11571)
Co-authored-by: Ajay Poshak <ajay.poshak@bookmyshow.com>
2020-05-30 22:38:15 +02:00

33 lines
676 B
JavaScript

function classFactory() {
var _class, _foo, _temp, _bar;
return _temp = (_foo = new WeakMap(), _class = class Foo {
constructor() {
_foo.set(this, {
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"
}, _temp;
}