-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Labels
outdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issuepkg: parser
Description
💻
- Would you like to work on a fix?
How are you using Babel?
@babel/cli
Input code
// snippet 1
async function𝐬 f() {}// snippet 2
async function𝐬 => {}Configuration file name
package.json
Configuration
N.A.
Current and expected behavior
Snippet 1 is invalid and the parser should throw.
Snippet 2 is valid but the parser throws "unexpected token" on =>.
Environment
Possible solution
We should examine how we detect the pattern async function in
| isAsyncFunction(): boolean { |
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
outdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issuepkg: parser