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
430 B
JavaScript

var _x = /*#__PURE__*/new WeakMap();
var _y = /*#__PURE__*/new WeakMap();
var Foo = /*#__PURE__*/babelHelpers.createClass(function Foo() {
"use strict";
babelHelpers.classCallCheck(this, Foo);
babelHelpers.classPrivateFieldInitSpec(this, _x, {
writable: true,
value: 0
});
babelHelpers.classPrivateFieldInitSpec(this, _y, {
writable: true,
value: babelHelpers.classPrivateFieldGet(this, _x)
});
});