Files
Jan JonesandGitHub 24ac865e9e Revert "Improve output when wrapping functions" (#15979)
* Add a test

* Revert "Improve output when wrapping functions (e.g. `async` functions) (#15922)"

This reverts commit f64c854415.

* Update snapshot
2023-09-16 18:09:27 +02:00

24 lines
562 B
JavaScript

// Angular needs to always compile async functions, even if
// the targets support class fields.
// https://github.com/babel/babel/issues/14749
class A {
a = (() => {
var _this = this;
return babelHelpers.asyncToGenerator(function* () {
return _this;
});
})();
b = (() => {
var _this2 = this;
return function () {
var _ref2 = babelHelpers.asyncToGenerator(function* (x, y, z) {
return _this2;
});
return function (_x, _x2, _x3) {
return _ref2.apply(this, arguments);
};
}();
})();
}