packages/babel-plugin-proposal-private-methods/test/fixtures/private-static-method/super/output.js
raw| 1 | class Base { |
| 2 | static basePublicStaticMethod() { |
| 3 | return 'good'; |
| 4 | } |
| 5 | } |
| 6 | class Sub extends Base { |
| 7 | static basePublicStaticMethod() { |
| 8 | return 'bad'; |
| 9 | } |
| 10 | static check() { |
| 11 | babelHelpers.classStaticPrivateMethodGet(Sub, Sub, _subStaticPrivateMethod).call(Sub); |
| 12 | } |
| 13 | } |
| 14 | function _subStaticPrivateMethod() { |
| 15 | return babelHelpers.get(babelHelpers.getPrototypeOf(Sub), "basePublicStaticMethod", this).call(this); |
| 16 | } |