mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* Add a test
* Revert "Improve output when wrapping functions (e.g. `async` functions) (#15922)"
This reverts commit f64c854415.
* Update snapshot
24 lines
562 B
JavaScript
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);
|
|
};
|
|
}();
|
|
})();
|
|
}
|