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

17 lines
325 B
JavaScript

var _x = babelHelpers.classPrivateFieldLooseKey("x");
var C = function C() {
"use strict";
babelHelpers.classCallCheck(this, C);
this.y = babelHelpers.classPrivateFieldLooseBase(this, _x)[_x];
Object.defineProperty(this, _x, {
writable: true,
value: void 0
});
};
expect(() => {
new C();
}).toThrow();