packages/babel-plugin-proposal-private-methods/test/fixtures/private-method-loose/exfiltrated/output.js
raw| 1 | var exfiltrated; |
| 2 | var _privateMethod = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("privateMethod"); |
| 3 | class Foo { |
| 4 | constructor() { |
| 5 | Object.defineProperty(this, _privateMethod, { |
| 6 | value: _privateMethod2 |
| 7 | }); |
| 8 | if (exfiltrated === undefined) { |
| 9 | exfiltrated = babelHelpers.classPrivateFieldLooseBase(this, _privateMethod)[_privateMethod]; |
| 10 | } |
| 11 | } |
| 12 | } |
| 13 | function _privateMethod2() {} |