wentout c59870c526
Mark class prototype as read-only (#12115)
* initial code 2 fix the issue #2025

* Mark class prototype as read-only

* Update fixtures

* Fix failure

* Update Babel 8 fixtures

* Disable in loose mode

* Update fixtures

Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-12-10 21:44:48 +01:00

26 lines
600 B
JavaScript

var _scopedFunctionWithThis = /*#__PURE__*/new WeakMap();
var Child = /*#__PURE__*/function (_Parent) {
"use strict";
babelHelpers.inherits(Child, _Parent);
var _super = babelHelpers.createSuper(Child);
function Child() {
var _this;
babelHelpers.classCallCheck(this, Child);
_this = _super.call(this);
babelHelpers.classPrivateFieldInitSpec(babelHelpers.assertThisInitialized(_this), _scopedFunctionWithThis, {
writable: true,
value: () => {
_this.name = {};
}
});
return _this;
}
return babelHelpers.createClass(Child);
}(Parent);