We're naming the inner generator function in the name of the original async function. This means when people have recursive await calls it refers to the generator version. Which is fine if we had a `yield *` (delegate). However, if not it leads to returning an unresolved generator object. We can either capture all recursive calls and add a delegate, which becomes really hard with expressions. I choose to have the name reserved to the exposed function `retFunction`. Fixes #2782
The compiler for writing next generation JavaScript.
Looking for support?
For questions and support please visit the Slack community or StackOverflow.
The Babel issue tracker is exclusively for bug reports and feature requests.
Want to report an issue with babeljs.io?
For documentation and website issues please visit the babel.github.io repo.
Description
Languages
JavaScript
99.5%
Makefile
0.3%
HTML
0.1%