Debian Codegraph @

packages/babel-plugin-proposal-class-properties/test/fixtures/private/derived/output.js

raw
1 var _prop = /*#__PURE__*/new WeakMap();
2 var Foo = /*#__PURE__*/babelHelpers.createClass(function Foo() {
3 "use strict";
4
5 babelHelpers.classCallCheck(this, Foo);
6 babelHelpers.classPrivateFieldInitSpec(this, _prop, {
7 writable: true,
8 value: "foo"
9 });
10 });
11 var _prop2 = /*#__PURE__*/new WeakMap();
12 var Bar = /*#__PURE__*/function (_Foo) {
13 "use strict";
14
15 babelHelpers.inherits(Bar, _Foo);
16 var _super = babelHelpers.createSuper(Bar);
17 function Bar(...args) {
18 var _this;
19 babelHelpers.classCallCheck(this, Bar);
20 _this = _super.call(this, ...args);
21 babelHelpers.classPrivateFieldInitSpec(babelHelpers.assertThisInitialized(_this), _prop2, {
22 writable: true,
23 value: "bar"
24 });
25 return _this;
26 }
27 return babelHelpers.createClass(Bar);
28 }(Foo);