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

28 lines
550 B
JavaScript

var _foo = new WeakMap();
var Foo = /*#__PURE__*/function () {
"use strict";
function Foo() {
babelHelpers.classCallCheck(this, Foo);
_foo.set(this, {
writable: true,
value: function () {
return this;
}
});
}
babelHelpers.createClass(Foo, [{
key: "test",
value: function test(other) {
var _other$obj;
babelHelpers.classPrivateFieldGet(this, _foo).call(this);
babelHelpers.classPrivateFieldGet(_other$obj = other.obj, _foo).call(_other$obj);
}
}]);
return Foo;
}();