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
245 B
JavaScript
11 lines
245 B
JavaScript
(function () {
|
|
var _poll = babelHelpers.asyncToGenerator(function* () {
|
|
console.log(yield Promise.resolve('Hello'));
|
|
setTimeout(poll, 1000);
|
|
});
|
|
function poll() {
|
|
return _poll.apply(this, arguments);
|
|
}
|
|
return poll;
|
|
})()();
|