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

25 lines
353 B
JavaScript

var _bar = new WeakMap();
class Foo {
constructor() {
_bar.set(this, {
writable: true,
value: "bar"
});
}
static test() {
return babelHelpers.classStaticPrivateFieldSpecGet(Foo, Foo, _foo);
}
test() {
return babelHelpers.classPrivateFieldGet(this, _bar);
}
}
var _foo = {
writable: true,
value: "foo"
};