Debian Codegraph @

packages/babel-plugin-proposal-class-properties/test/fixtures/private/nested-class-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 _foo2 = /*#__PURE__*/new WeakMap();
16 var Nested = /*#__PURE__*/function () {
17 function Nested() {
18 babelHelpers.classCallCheck(this, Nested);
19 babelHelpers.classPrivateFieldInitSpec(this, _foo2, {
20 writable: true,
21 value: 2
22 });
23 }
24 babelHelpers.createClass(Nested, [{
25 key: "test",
26 value: function test() {
27 babelHelpers.classPrivateFieldGet(this, _foo2);
28 }
29 }]);
30 return Nested;
31 }();
32 babelHelpers.classPrivateFieldGet(this, _foo);
33 }
34 }]);
35 return Foo;
36 }();