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

24 lines
480 B
JavaScript

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