Debian Codegraph @

packages/babel-plugin-proposal-class-properties/test/fixtures/private/nested-class-other-redeclared/output.js

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