Make parse_pat_ident not recover bad name
This commit is contained in:
@@ -839,7 +839,7 @@ impl<'a> Parser<'a> {
|
||||
binding_annotation: BindingAnnotation,
|
||||
syntax_loc: Option<PatternLocation>,
|
||||
) -> PResult<'a, PatKind> {
|
||||
let ident = self.parse_ident()?;
|
||||
let ident = self.parse_ident_common(false)?;
|
||||
|
||||
if self.may_recover()
|
||||
&& !matches!(syntax_loc, Some(PatternLocation::FunctionParameter))
|
||||
|
||||
Reference in New Issue
Block a user