mirror of
https://github.com/swc-project/swc.git
synced 2024-11-23 17:54:15 +03:00
fix(es/ast): Update EsVersion::latest()
(#3261)
This commit is contained in:
parent
15b604b6d6
commit
69978518c9
@ -118,10 +118,10 @@ pub enum EsVersion {
|
||||
}
|
||||
|
||||
impl EsVersion {
|
||||
/// Get the latest version. This is `es2021` for now, but it will be changed
|
||||
/// Get the latest version. This is `es2022` for now, but it will be changed
|
||||
/// if a new version of specification is released.
|
||||
pub const fn latest() -> Self {
|
||||
EsVersion::Es2021
|
||||
EsVersion::Es2022
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user