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

36 lines
711 B
JavaScript

var Test = /*#__PURE__*/babelHelpers.createClass(function Test() {
"use strict";
babelHelpers.classCallCheck(this, Test);
this.state = "test";
});
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);
_this.state = "test";
return _this;
}
return babelHelpers.createClass(Foo);
}(Bar);
var ConstructorScoping = /*#__PURE__*/babelHelpers.createClass(function ConstructorScoping() {
"use strict";
babelHelpers.classCallCheck(this, ConstructorScoping);
var bar;
{
var _bar;
}
});