Debian Codegraph @

packages/babel-plugin-transform-classes/test/fixtures/spec/accessing-super-class/output.js

raw
1 var Test = /*#__PURE__*/function (_Foo) {
2 "use strict";
3
4 babelHelpers.inherits(Test, _Foo);
5 var _super = babelHelpers.createSuper(Test);
6 function Test() {
7 var _babelHelpers$get;
8 var _thisSuper, _thisSuper2, _thisSuper3, _this;
9 babelHelpers.classCallCheck(this, Test);
10 woops.super.test();
11 _this = _super.call(this);
12 babelHelpers.get((_thisSuper = babelHelpers.assertThisInitialized(_this), babelHelpers.getPrototypeOf(Test.prototype)), "test", _thisSuper).call(_thisSuper);
13 _this = _super.apply(this, arguments);
14 _this = _super.call.apply(_super, [this, "test"].concat(Array.prototype.slice.call(arguments)));
15 babelHelpers.get((_thisSuper2 = babelHelpers.assertThisInitialized(_this), babelHelpers.getPrototypeOf(Test.prototype)), "test", _thisSuper2).apply(_thisSuper2, arguments);
16 (_babelHelpers$get = babelHelpers.get((_thisSuper3 = babelHelpers.assertThisInitialized(_this), babelHelpers.getPrototypeOf(Test.prototype)), "test", _thisSuper3)).call.apply(_babelHelpers$get, [_thisSuper3, "test"].concat(Array.prototype.slice.call(arguments)));
17 return _this;
18 }
19 babelHelpers.createClass(Test, [{
20 key: "test",
21 value: function test() {
22 var _babelHelpers$get2;
23 babelHelpers.get(babelHelpers.getPrototypeOf(Test.prototype), "test", this).call(this);
24 babelHelpers.get(babelHelpers.getPrototypeOf(Test.prototype), "test", this).apply(this, arguments);
25 (_babelHelpers$get2 = babelHelpers.get(babelHelpers.getPrototypeOf(Test.prototype), "test", this)).call.apply(_babelHelpers$get2, [this, "test"].concat(Array.prototype.slice.call(arguments)));
26 }
27 }], [{
28 key: "foo",
29 value: function foo() {
30 var _babelHelpers$get3;
31 babelHelpers.get(babelHelpers.getPrototypeOf(Test), "foo", this).call(this);
32 babelHelpers.get(babelHelpers.getPrototypeOf(Test), "foo", this).apply(this, arguments);
33 (_babelHelpers$get3 = babelHelpers.get(babelHelpers.getPrototypeOf(Test), "foo", this)).call.apply(_babelHelpers$get3, [this, "test"].concat(Array.prototype.slice.call(arguments)));
34 }
35 }]);
36 return Test;
37 }(Foo);