Debian Codegraph @

packages/babel-helper-create-class-features-plugin/test/fixtures/field-reinitialization/private-field/output.js

raw
1 class Base {
2 constructor(obj) {
3 return obj;
4 }
5 }
6 let counter = 0;
7 var _foo = /*#__PURE__*/new WeakMap();
8 class Derived extends Base {
9 constructor(...args) {
10 super(...args);
11 babelHelpers.classPrivateFieldInitSpec(this, _foo, {
12 writable: true,
13 value: ++counter
14 });
15 }
16 static get(obj) {
17 return babelHelpers.classPrivateFieldGet(obj, _foo);
18 }
19 }