Debian Codegraph @

packages/babel-plugin-proposal-class-properties/test/fixtures/private/nested-class-extends-computed-redeclared/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 _foo3;
16 var _babelHelpers$classPr;
17 var _foo2 = /*#__PURE__*/new WeakMap();
18 var Nested = /*#__PURE__*/function (_ref) {
19 babelHelpers.inherits(Nested, _ref);
20 var _super = babelHelpers.createSuper(Nested);
21 function Nested(...args) {
22 var _this;
23 babelHelpers.classCallCheck(this, Nested);
24 _this = _super.call(this, ...args);
25 babelHelpers.classPrivateFieldInitSpec(babelHelpers.assertThisInitialized(_this), _foo2, {
26 writable: true,
27 value: 3
28 });
29 return _this;
30 }
31 return babelHelpers.createClass(Nested);
32 }((_foo3 = /*#__PURE__*/new WeakMap(), _babelHelpers$classPr = babelHelpers.classPrivateFieldGet(this, _foo3), /*#__PURE__*/function () {
33 function _class2() {
34 babelHelpers.classCallCheck(this, _class2);
35 babelHelpers.classPrivateFieldInitSpec(this, _foo3, {
36 writable: true,
37 value: 2
38 });
39 babelHelpers.defineProperty(this, _babelHelpers$classPr, 2);
40 }
41 return babelHelpers.createClass(_class2);
42 }()));
43 }
44 }]);
45 return Foo;
46 }();