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

18 lines
298 B
JavaScript

var _x = new WeakMap();
var C = function C() {
"use strict";
babelHelpers.classCallCheck(this, C);
babelHelpers.defineProperty(this, "y", babelHelpers.classPrivateFieldGet(this, _x));
_x.set(this, {
writable: true,
value: void 0
});
};
expect(() => {
new C();
}).toThrow();