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

15 lines
330 B
JavaScript

let A = /*#__PURE__*/function (_B) {
"use strict";
babelHelpers.inherits(A, _B);
var _super = babelHelpers.createSuper(A);
function A() {
babelHelpers.classCallCheck(this, A);
return _super.call.apply(_super, [this].concat(babelHelpers.toConsumableArray(foo)));
}
return babelHelpers.createClass(A);
}(B);