Felipe Armoni fdfe97879e
Disallow reinitializing private elements (#13601)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
2021-08-30 12:44:38 +02:00

14 lines
491 B
JavaScript

var _client = /*#__PURE__*/new WeakMap();
var Foo = function Foo(props) {
"use strict";
babelHelpers.classCallCheck(this, Foo);
babelHelpers.classPrivateFieldInitSpec(this, _client, {
writable: true,
value: void 0
});
babelHelpers.classPrivateFieldSet(this, _client, 1);
[this.x = babelHelpers.classPrivateFieldGet(this, _client), babelHelpers.classPrivateFieldDestructureSet(this, _client).value, this.y = babelHelpers.classPrivateFieldGet(this, _client)] = props;
};