packages/babel-plugin-proposal-private-methods/test/fixtures/private-static-method-privateFieldsAsProperties/async/output.js
raw| 1 | var _privateStaticMethod = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("privateStaticMethod"); |
| 2 | class Cl { |
| 3 | test() { |
| 4 | return babelHelpers.classPrivateFieldLooseBase(Cl, _privateStaticMethod)[_privateStaticMethod](); |
| 5 | } |
| 6 | } |
| 7 | async function _privateStaticMethod2() { |
| 8 | return 2; |
| 9 | } |
| 10 | Object.defineProperty(Cl, _privateStaticMethod, { |
| 11 | value: _privateStaticMethod2 |
| 12 | }); |
| 13 | return new Cl().test().then(val => { |
| 14 | expect(val).toBe(2); |
| 15 | }); |