File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -788,7 +788,7 @@ private Token readRegexp() {
788788 String validFlags = "gim" ;
789789 if (this .options .ecmaVersion () >= 6 ) validFlags = "gimuy" ;
790790 if (this .options .ecmaVersion () >= 9 ) validFlags = "gimsuy" ;
791- if (this .options .ecmaVersion () >= 12 ) validFlags = "gimsuyv" ;
791+ if (this .options .ecmaVersion () >= 15 ) validFlags = "gimsuyv" ;
792792 if (!mods .matches ("^[" + validFlags + "]*$" ))
793793 this .raise (start , "Invalid regular expression flag" );
794794 if (mods .indexOf ('u' ) >= 0 ) {
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ public static enum ECMAVersion {
4242 ECMA2018 (2018 , 9 ),
4343 ECMA2019 (2019 , 10 ),
4444 ECMA2020 (2020 , 11 ),
45- ECMA2021 ( 2021 , 12 );
45+ ECMA2024 ( 2024 , 15 );
4646
4747 private final int version ;
4848 public final int legacyVersion ;
@@ -233,7 +233,7 @@ public Set<String> getPredefinedGlobals() {
233233 private VirtualSourceRoot virtualSourceRoot ;
234234
235235 public ExtractorConfig (boolean experimental ) {
236- this .ecmaVersion = experimental ? ECMAVersion .ECMA2021 : ECMAVersion .ECMA2019 ;
236+ this .ecmaVersion = experimental ? ECMAVersion .ECMA2024 : ECMAVersion .ECMA2019 ;
237237 this .platform = Platform .AUTO ;
238238 this .jsx = true ;
239239 this .sourceType = SourceType .AUTO ;
You can’t perform that action at this time.
0 commit comments