packages/babel-plugin-proposal-private-methods/test/fixtures/private-static-method/this/output.js
raw| 1 | class A { |
| 2 | static get a() { |
| 3 | return 1; |
| 4 | } |
| 5 | } |
| 6 | class B extends A { |
| 7 | static get b() { |
| 8 | return 2; |
| 9 | } |
| 10 | static extract() { |
| 11 | return [babelHelpers.classStaticPrivateMethodGet(this, B, _getA), babelHelpers.classStaticPrivateMethodGet(this, B, _getB)]; |
| 12 | } |
| 13 | } |
| 14 | function _getA() { |
| 15 | return babelHelpers.get(babelHelpers.getPrototypeOf(B), "a", this); |
| 16 | } |
| 17 | function _getB() { |
| 18 | return this.b; |
| 19 | } |
| 20 | var [getA, getB] = B.extract(); |