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

20 lines
475 B
JavaScript

var _client = new WeakMap();
var Foo = function Foo(props) {
"use strict";
babelHelpers.classCallCheck(this, Foo);
_client.set(this, {
writable: true,
value: void 0
});
babelHelpers.classPrivateFieldSet(this, _client, 'foo');
({
x: this.x = babelHelpers.classPrivateFieldGet(this, _client),
y: babelHelpers.classPrivateFieldDestructureSet(this, _client).value,
z: this.z = babelHelpers.classPrivateFieldGet(this, _client)
} = props);
};