Debian Codegraph @

packages/babel-plugin-proposal-private-methods/test/fixtures/private-method/read-only/output.js

raw
1 var _method = /*#__PURE__*/new WeakSet();
2 class A {
3 self() {
4 this.counter++;
5 return this;
6 }
7 constructor() {
8 babelHelpers.classPrivateMethodInitSpec(this, _method);
9 babelHelpers.defineProperty(this, "counter", 0);
10 this.self(), 2, babelHelpers.readOnlyError("#method");
11 [babelHelpers.classPrivateFieldDestructureSet(this, _method).value] = [2];
12 }
13 }
14 function _method2() {}