[Bug]: Async generators with default parameters compile to invalid code #15145
Labels
i: bug
i: regression
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
馃捇
How are you using Babel?
babel-loader (webpack)
Input code
Configuration file name
No response
Configuration
No response
Current and expected behavior
With babel v7.17.12, the above code is compiled to:
When run with node, this prints
hello
as expected.With v7.20.2, the compiled code is:
This throws an exception:
Environment
Turn "Bug Fixes" OFF in REPL to reproduce.
Possible solution
Possible regression caused by #15081 ?
Additional context
No response
The text was updated successfully, but these errors were encountered: