File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -788,7 +788,7 @@ private Token readRegexp() {
788
788
String validFlags = "gim" ;
789
789
if (this .options .ecmaVersion () >= 6 ) validFlags = "gimuy" ;
790
790
if (this .options .ecmaVersion () >= 9 ) validFlags = "gimsuy" ;
791
- if (this .options .ecmaVersion () >= 12 ) validFlags = "gimsuyv" ;
791
+ if (this .options .ecmaVersion () >= 15 ) validFlags = "gimsuyv" ;
792
792
if (!mods .matches ("^[" + validFlags + "]*$" ))
793
793
this .raise (start , "Invalid regular expression flag" );
794
794
if (mods .indexOf ('u' ) >= 0 ) {
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ public static enum ECMAVersion {
42
42
ECMA2018 (2018 , 9 ),
43
43
ECMA2019 (2019 , 10 ),
44
44
ECMA2020 (2020 , 11 ),
45
- ECMA2021 ( 2021 , 12 );
45
+ ECMA2024 ( 2024 , 15 );
46
46
47
47
private final int version ;
48
48
public final int legacyVersion ;
@@ -233,7 +233,7 @@ public Set<String> getPredefinedGlobals() {
233
233
private VirtualSourceRoot virtualSourceRoot ;
234
234
235
235
public ExtractorConfig (boolean experimental ) {
236
- this .ecmaVersion = experimental ? ECMAVersion .ECMA2021 : ECMAVersion .ECMA2019 ;
236
+ this .ecmaVersion = experimental ? ECMAVersion .ECMA2024 : ECMAVersion .ECMA2019 ;
237
237
this .platform = Platform .AUTO ;
238
238
this .jsx = true ;
239
239
this .sourceType = SourceType .AUTO ;
You can’t perform that action at this time.
0 commit comments