mirror of
https://github.com/swc-project/swc.git
synced 2024-11-23 17:54:15 +03:00
feat(es/parser): Relax MSRV requirement (#3922)
This commit is contained in:
parent
c80d5c87d0
commit
a8ac7e39b0
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user