Debian Codegraph @

packages/babel-plugin-proposal-private-methods/test/fixtures/assumption-constantSuper/private-method-super/output.js

raw
1 class Base {
2 superMethod() {
3 return 'good';
4 }
5 }
6 var _privateMethod = /*#__PURE__*/new WeakSet();
7 class Sub extends Base {
8 constructor(...args) {
9 super(...args);
10 babelHelpers.classPrivateMethodInitSpec(this, _privateMethod);
11 }
12 superMethod() {
13 return 'bad';
14 }
15 publicMethod() {
16 return babelHelpers.classPrivateMethodGet(this, _privateMethod, _privateMethod2).call(this);
17 }
18 }
19 function _privateMethod2() {
20 return Base.prototype.superMethod.call(this);
21 }