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

39 lines
635 B
JavaScript

var _prop = new WeakMap();
var Foo = function Foo() {
"use strict";
babelHelpers.classCallCheck(this, Foo);
_prop.set(this, {
writable: true,
value: "foo"
});
};
var _prop2 = new WeakMap();
var Bar = /*#__PURE__*/function (_Foo) {
"use strict";
babelHelpers.inherits(Bar, _Foo);
var _super = babelHelpers.createSuper(Bar);
function Bar(...args) {
var _this;
babelHelpers.classCallCheck(this, Bar);
_this = _super.call(this, ...args);
_prop2.set(babelHelpers.assertThisInitialized(_this), {
writable: true,
value: "bar"
});
return _this;
}
return Bar;
}(Foo);