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
11 lines
320 B
JavaScript
11 lines
320 B
JavaScript
function foo() {
|
|
return _foo.apply(this, arguments);
|
|
}
|
|
function _foo() {
|
|
_foo = babelHelpers.wrapAsyncGenerator(babelHelpers.skipFirstGeneratorNext(function* () {
|
|
let _functionSent = yield;
|
|
_functionSent = yield babelHelpers.awaitAsyncGenerator(_functionSent);
|
|
}));
|
|
return _foo.apply(this, arguments);
|
|
}
|