Debian Codegraph @

packages/babel-plugin-proposal-class-properties/test/fixtures/private/nested-class-extends-computed/output.js

raw
1 var _foo = /*#__PURE__*/new WeakMap();
2 var Foo = /*#__PURE__*/function () {
3 "use strict";
4
5 function Foo() {
6 babelHelpers.classCallCheck(this, Foo);
7 babelHelpers.classPrivateFieldInitSpec(this, _foo, {
8 writable: true,
9 value: 1
10 });
11 }
12 babelHelpers.createClass(Foo, [{
13 key: "test",
14 value: function test() {
15 var _babelHelpers$classPr;
16 var _foo2 = /*#__PURE__*/new WeakMap();
17 var Nested = /*#__PURE__*/function (_ref) {
18 babelHelpers.inherits(Nested, _ref);
19 var _super = babelHelpers.createSuper(Nested);
20 function Nested(...args) {
21 var _this;
22 babelHelpers.classCallCheck(this, Nested);
23 _this = _super.call(this, ...args);
24 babelHelpers.classPrivateFieldInitSpec(babelHelpers.assertThisInitialized(_this), _foo2, {
25 writable: true,
26 value: 3
27 });
28 return _this;
29 }
30 return babelHelpers.createClass(Nested);
31 }((_babelHelpers$classPr = babelHelpers.classPrivateFieldGet(this, _foo), /*#__PURE__*/function () {
32 function _class2() {
33 babelHelpers.classCallCheck(this, _class2);
34 babelHelpers.defineProperty(this, _babelHelpers$classPr, 2);
35 }
36 return babelHelpers.createClass(_class2);
37 }()));
38 }
39 }]);
40 return Foo;
41 }();