Debian Codegraph @

packages/babel-plugin-proposal-private-methods/test/fixtures/accessors/get-only-setter/output.js

raw
1 var _privateField = /*#__PURE__*/new WeakMap();
2 var _privateFieldValue = /*#__PURE__*/new WeakMap();
3 class Cl {
4 constructor() {
5 babelHelpers.classPrivateFieldInitSpec(this, _privateFieldValue, {
6 get: void 0,
7 set: _set_privateFieldValue
8 });
9 babelHelpers.classPrivateFieldInitSpec(this, _privateField, {
10 writable: true,
11 value: 0
12 });
13 this.publicField = (this, babelHelpers.writeOnlyError("#privateFieldValue"));
14 }
15 }
16 function _set_privateFieldValue(newValue) {
17 babelHelpers.classPrivateFieldSet(this, _privateField, newValue);
18 }