Skip to content

[Bug]: Babel crashes when an async function returns await in sparse array #15142

@p51lee

Description

@p51lee

💻

  • Would you like to work on a fix?

How are you using Babel?

Other (Next.js, Gatsby, vue-cli, ...)

Input code

async ( ) => [ await  0 , , ] ;

Configuration file name

No response

Configuration

No response

Current and expected behavior

input.js is terminated without error:

$ node input.js # no error

but Babel fails to transpile input.js:
image

Environment

Reproduction on Babel's own REPL

Possible solution

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

area: upstreamoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions