[Bug]: Edge-case exception while printing single-parameter arrow function #13198
Labels
i: needs triage
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
馃捇
How are you using Babel?
Programmatic API (
babel.transform
,babel.parse
)Input code
Configuration file name
No response
Configuration
No response
Current and expected behavior
Expected: Babel generates valid output source for the AST.
Actual:
Environment
Possible solution
Originally I was planning to PR an additional null check, but on closer inspection (and in light of #13136) I think it makes more sense to get rid of all this special-case code and just delegate to the regular param-printing code.
Additional context
No response
The text was updated successfully, but these errors were encountered: