Debian Codegraph @

packages/babel-plugin-proposal-class-properties/test/fixtures/regression/6153/output.js

raw
1 (function () {
2 class Foo {
3 constructor() {
4 var _this = this;
5 babelHelpers.defineProperty(this, "fn", function () {
6 return console.log(_this);
7 });
8 }
9 }
10 babelHelpers.defineProperty(Foo, "fn", function () {
11 return console.log(Foo);
12 });
13 });
14 (function () {
15 var _class;
16 return _class = class Bar {
17 constructor() {
18 var _this2 = this;
19 babelHelpers.defineProperty(this, "fn", function () {
20 return console.log(_this2);
21 });
22 }
23 }, babelHelpers.defineProperty(_class, "fn", function () {
24 return console.log(_class);
25 }), _class;
26 });
27 (function () {
28 class Baz {
29 constructor(_force) {
30 var _this3 = this;
31 babelHelpers.defineProperty(this, "fn", function () {
32 return console.log(_this3);
33 });
34 babelHelpers.defineProperty(this, "force", force);
35 }
36 }
37 babelHelpers.defineProperty(Baz, "fn", function () {
38 return console.log(Baz);
39 });
40 });
41 var qux = function () {
42 class Qux {
43 constructor() {
44 var _this4 = this;
45 babelHelpers.defineProperty(this, "fn", function () {
46 return console.log(_this4);
47 });
48 }
49 }
50 babelHelpers.defineProperty(Qux, "fn", function () {
51 return console.log(Qux);
52 });
53 }.bind(this);