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

130 lines
2.9 KiB
JavaScript

var TestEmpty = /*#__PURE__*/function (_ref) {
"use strict";
babelHelpers.inherits(TestEmpty, _ref);
var _super = babelHelpers.createSuper(TestEmpty);
function TestEmpty() {
babelHelpers.classCallCheck(this, TestEmpty);
return _super.apply(this, arguments);
}
return babelHelpers.createClass(TestEmpty);
}( /*#__PURE__*/function () {
"use strict";
function _class() {
babelHelpers.classCallCheck(this, _class);
}
return babelHelpers.createClass(_class);
}());
var TestConstructorOnly = /*#__PURE__*/function (_ref2) {
"use strict";
babelHelpers.inherits(TestConstructorOnly, _ref2);
var _super2 = babelHelpers.createSuper(TestConstructorOnly);
function TestConstructorOnly() {
babelHelpers.classCallCheck(this, TestConstructorOnly);
return _super2.apply(this, arguments);
}
return babelHelpers.createClass(TestConstructorOnly);
}( /*#__PURE__*/function () {
"use strict";
function _class2() {
babelHelpers.classCallCheck(this, _class2);
}
return babelHelpers.createClass(_class2);
}());
var TestMethodOnly = /*#__PURE__*/function (_ref3) {
"use strict";
babelHelpers.inherits(TestMethodOnly, _ref3);
var _super3 = babelHelpers.createSuper(TestMethodOnly);
function TestMethodOnly() {
babelHelpers.classCallCheck(this, TestMethodOnly);
return _super3.apply(this, arguments);
}
return babelHelpers.createClass(TestMethodOnly);
}( /*#__PURE__*/function () {
"use strict";
function _class3() {
babelHelpers.classCallCheck(this, _class3);
}
babelHelpers.createClass(_class3, [{
key: "method",
value: function method() {}
}]);
return _class3;
}());
var TestConstructorAndMethod = /*#__PURE__*/function (_ref4) {
"use strict";
babelHelpers.inherits(TestConstructorAndMethod, _ref4);
var _super4 = babelHelpers.createSuper(TestConstructorAndMethod);
function TestConstructorAndMethod() {
babelHelpers.classCallCheck(this, TestConstructorAndMethod);
return _super4.apply(this, arguments);
}
return babelHelpers.createClass(TestConstructorAndMethod);
}( /*#__PURE__*/function () {
"use strict";
function _class4() {
babelHelpers.classCallCheck(this, _class4);
}
babelHelpers.createClass(_class4, [{
key: "method",
value: function method() {}
}]);
return _class4;
}());
var TestMultipleMethods = /*#__PURE__*/function (_ref5) {
"use strict";
babelHelpers.inherits(TestMultipleMethods, _ref5);
var _super5 = babelHelpers.createSuper(TestMultipleMethods);
function TestMultipleMethods() {
babelHelpers.classCallCheck(this, TestMultipleMethods);
return _super5.apply(this, arguments);
}
return babelHelpers.createClass(TestMultipleMethods);
}( /*#__PURE__*/function () {
"use strict";
function _class5() {
babelHelpers.classCallCheck(this, _class5);
}
babelHelpers.createClass(_class5, [{
key: "m1",
value: function m1() {}
}, {
key: "m2",
value: function m2() {}
}]);
return _class5;
}());