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>
This commit is contained in:
wentout
2021-12-10 23:44:48 +03:00
committed by GitHub
parent 39080492f4
commit c59870c526
221 changed files with 490 additions and 458 deletions

View File

@@ -9,5 +9,5 @@ var Foo = /*#__PURE__*/function () {
_proto["bar"] = function bar() {};
return Foo;
return babelHelpers.createClass(Foo);
}();

View File

@@ -13,5 +13,5 @@ var Test = /*#__PURE__*/function () {
_proto.c = function c() {};
return Test;
return babelHelpers.createClass(Test);
}();

View File

@@ -9,5 +9,5 @@ var Foo = /*#__PURE__*/function () {
_proto.method = function method() {};
return Foo;
return babelHelpers.createClass(Foo);
}();