feat(es/parser): Relax MSRV requirement (#3922)

This commit is contained in:
Donny/강동윤 2022-03-09 13:44:22 +09:00 committed by GitHub
parent c80d5c87d0
commit a8ac7e39b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -422,9 +422,11 @@ impl SyntaxError {
SyntaxError::PropertyNamedConstructor => {
"Classes may not have a non-static field named 'constructor'".into()
}
SyntaxError::PrivateNameModifier(modifier) => {
format!("'{modifier}' modifier cannot be used with a private identifier").into()
}
SyntaxError::PrivateNameModifier(modifier) => format!(
"'{}' modifier cannot be used with a private identifier",
modifier
)
.into(),
SyntaxError::ReadOnlyMethod => "A method cannot be readonly".into(),
SyntaxError::TsBindingPatCannotBeOptional => "A binding pattern parameter cannot be \