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

14 lines
297 B
JavaScript

var Ref = /*#__PURE__*/function () {
"use strict";
function Ref() {
var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ++Ref.nextID;
babelHelpers.classCallCheck(this, Ref);
this.id = id;
}
return babelHelpers.createClass(Ref);
}();
Ref.nextID = 0;