-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Labels
Has PRoutdatedA 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
Bug Report
The let identifier should be valid in a catch clause in sloppy (non-strict) mode but this appears to be invalid.
Current Behavior
The let identifier is special in strict mode but not a keyword in non-strict mode. In this case Babel still throws over it where I think it should not.
Input Code
try {} catch (let) {}Expected behavior/code
Should pass.
Environment
Babel 7.5.5
Possible Solution
Update heuristics to detect this :)
Additional context/Screenshots
I hope I'm not missing some weird exception in the spec but as far as I can see there is none and this should pass.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Has PRoutdatedA 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