packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-methods--to-es2015/private/output.js
raw symbols SCIP| 1 | var _call_a, _initProto; |
| 2 | const dec = () => {}; |
| 3 | var _a = /*#__PURE__*/new WeakMap(); |
| 4 | class Foo { |
| 5 | constructor(...args) { |
| 6 | babelHelpers.classPrivateFieldInitSpec(this, _a, { |
| 7 | writable: true, |
| 8 | value: _call_a |
| 9 | }); |
| 10 | babelHelpers.defineProperty(this, "value", 1); |
| 11 | _initProto(this); |
| 12 | } |
| 13 | callA() { |
| 14 | return babelHelpers.classPrivateFieldGet(this, _a).call(this); |
| 15 | } |
| 16 | } |
| 17 | [_call_a, _initProto] = babelHelpers.applyDecs(Foo, [[dec, 2, "a", function () { |
| 18 | return this.value; |
| 19 | }]], []); |