@@ -157,14 +157,16 @@ private class BrowserFeaturesetYear implements Serializable {
157
157
158
158
BrowserFeaturesetYear (int year ) {
159
159
checkState (
160
- year == 2012 || (year >= 2018 && year <= 2022 ),
161
- "Illegal browser_featureset_year=%s. We support values 2012, or 2018..2022 only" ,
160
+ year == 2012 || (year >= 2018 && year <= 2023 ),
161
+ "Illegal browser_featureset_year=%s. We support values 2012, or 2018..2023 only" ,
162
162
year );
163
163
this .year = year ;
164
164
}
165
165
166
166
void setDependentValuesFromYear () {
167
- if (year == 2022 ) {
167
+ if (year == 2023 ) {
168
+ setOutputFeatureSet (FeatureSet .BROWSER_2023 );
169
+ } else if (year == 2022 ) {
168
170
setOutputFeatureSet (FeatureSet .BROWSER_2022 );
169
171
} else if (year == 2021 ) {
170
172
setOutputFeatureSet (FeatureSet .BROWSER_2021 );
@@ -214,8 +216,7 @@ public void setTypedAstOutputFile(@Nullable Path file) {
214
216
this .typedAstOutputFile = file ;
215
217
}
216
218
217
- @ Nullable
218
- Path getTypedAstOutputFile () {
219
+ @ Nullable Path getTypedAstOutputFile () {
219
220
return this .typedAstOutputFile ;
220
221
}
221
222
@@ -702,7 +703,6 @@ public boolean shouldRunReplaceMessagesForChrome() {
702
703
}
703
704
}
704
705
705
-
706
706
/** A CodingConvention to use during the compile. */
707
707
private CodingConvention codingConvention ;
708
708
@@ -1092,7 +1092,7 @@ public boolean shouldProtectHiddenSideEffects() {
1092
1092
* or side-effected. Gets that can be proven to be pure may still be considered as such.
1093
1093
*
1094
1094
* <p>Recall that object-spread is capable of triggering getters. Since the syntax doesn't
1095
- * explicitly specifiy a property, it is essentailly impossible to prove it has no side-effects
1095
+ * explicitly specify a property, it is essentailly impossible to prove it has no side-effects
1096
1096
* without this assumption.
1097
1097
*/
1098
1098
private boolean assumeGettersArePure = true ;
@@ -1800,7 +1800,7 @@ public void setLanguageOut(LanguageMode languageOut) {
1800
1800
* Sets the features that allowed to appear in the output. Any feature in the input that is not in
1801
1801
* this output must be transpiled away.
1802
1802
*
1803
- * <p>Note: this is an package private API since not every FeatureSet value can be properly output
1803
+ * <p>Note: this is a package private API since not every FeatureSet value can be properly output
1804
1804
* by the compiler without crashing. Both the `setBrowserFeaturesetYear` and `setLanguageOut` APIs
1805
1805
* are supported alternatives.
1806
1806
*/
@@ -2275,7 +2275,6 @@ public void setExportTestFunctions(boolean exportTestFunctions) {
2275
2275
this .exportTestFunctions = exportTestFunctions ;
2276
2276
}
2277
2277
2278
-
2279
2278
public void setSyntheticBlockStartMarker (String syntheticBlockStartMarker ) {
2280
2279
this .syntheticBlockStartMarker = syntheticBlockStartMarker ;
2281
2280
}
0 commit comments