-
-
Notifications
You must be signed in to change notification settings - Fork 950
Parser: cannot parse let?.x in script #16839
Copy link
Copy link
Labels
Description
This appears to be valid in scripts (but not in modules):
let?.xCertainly Acorn, Espree, and TS-ESLint can all parse it:
- Acorn AST explorer
- Espree AST explorer
- TS-ESLint AST explorer
We seem to be able to parse let.x, just not let?.x.
Discovered this oddity in ESLint's test cases.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackPriority
None yet
Effort
None yet