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

42 lines
834 B
JavaScript

var A = /*#__PURE__*/function () {
"use strict";
function A() {
babelHelpers.classCallCheck(this, A);
}
babelHelpers.createClass(A, [{
key: "foo",
value: function foo() {
return "bar";
}
}]);
return A;
}();
var _foo = new WeakMap();
var B = /*#__PURE__*/function (_A) {
"use strict";
babelHelpers.inherits(B, _A);
var _super = babelHelpers.createSuper(B);
function B(...args) {
var _thisSuper, _this;
babelHelpers.classCallCheck(this, B);
_this = _super.call(this, ...args);
_foo.set(babelHelpers.assertThisInitialized(_this), {
writable: true,
value: babelHelpers.get((_thisSuper = babelHelpers.assertThisInitialized(_this), babelHelpers.getPrototypeOf(B.prototype)), "foo", _thisSuper).call(_thisSuper)
});
return _this;
}
return B;
}(A);