Debian Codegraph @

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

raw
1 class Base {
2 superMethod() {
3 return 'good';
4 }
5 }
6 var _privateMethod = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("privateMethod");
7 class Sub extends Base {
8 constructor(...args) {
9 super(...args);
10 Object.defineProperty(this, _privateMethod, {
11 value: _privateMethod2
12 });
13 }
14 superMethod() {
15 return 'bad';
16 }
17 publicMethod() {
18 return babelHelpers.classPrivateFieldLooseBase(this, _privateMethod)[_privateMethod]();
19 }
20 }
21 function _privateMethod2() {
22 return Base.prototype.superMethod.call(this);
23 }