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

18 lines
354 B
JavaScript

var Test = /*#__PURE__*/function (_Foo) {
"use strict";
babelHelpers.inherits(Test, _Foo);
function Test() {
var _this;
babelHelpers.classCallCheck(this, Test);
_this = _Foo.call(this) || this;
babelHelpers.assertThisInitialized(_this);
_this.prop = 1;
return _this;
}
return babelHelpers.createClass(Test);
}(Foo);