Debian Codegraph @

packages/babel-plugin-transform-async-to-generator/test/fixtures/regression/in-uncompiled-class-fields/output.js

raw
1 // Angular needs to alwys compile async functions, even if
2 // the targets support class fields.
3 // https://github.com/babel/babel/issues/14749
4
5 class A {
6 a = (() => {
7 var _this = this;
8 return babelHelpers.asyncToGenerator(function* () {
9 return _this;
10 });
11 })();
12 b = (() => {
13 var _this2 = this;
14 return function () {
15 var _ref2 = babelHelpers.asyncToGenerator(function* (x, y, z) {
16 return _this2;
17 });
18 return function (_x, _x2, _x3) {
19 return _ref2.apply(this, arguments);
20 };
21 }();
22 })();
23 }