packages/babel-plugin-proposal-private-methods/test/fixtures/private-method-loose/async/output.js
raw| 1 | var _foo = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("foo"); |
| 2 | class Cl { |
| 3 | constructor() { |
| 4 | Object.defineProperty(this, _foo, { |
| 5 | value: _foo2 |
| 6 | }); |
| 7 | } |
| 8 | test() { |
| 9 | return babelHelpers.classPrivateFieldLooseBase(this, _foo)[_foo](); |
| 10 | } |
| 11 | } |
| 12 | async function _foo2() { |
| 13 | return 2; |
| 14 | } |