Skip to content

Commit 54cb06a

Browse files
lauraharkercopybara-github
authored andcommitted
Rename UNSTRANSPILABLE_FEATURES to UNTRANSPILABLE_FEATURES to fix a typo
UNSTRANSPILABLE_FEATURES corresponds to the "JSC_UNTRANSPILABLE_FEATURE_PRESENT" error, so "UNS"transpilable should just be "UN"transpilable PiperOrigin-RevId: 856789441
1 parent 7f020da commit 54cb06a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/com/google/javascript/jscomp/ClosureUnawareOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ private void setTranspilationOptions() {
6363
// DiagnosticGroups.CANNOT_TRANSPILE_FEATURE: features for which the compiler theoretically
6464
// might support transpilation, but does not currently.
6565
shadowOptions.setWarningLevel(DiagnosticGroups.CANNOT_TRANSPILE_FEATURE, CheckLevel.OFF);
66-
// DiagnosticGroups.UNSTRANSPILABLE_FEATURES: features JSCompiler will never transpile, like
66+
// DiagnosticGroups.UNTRANSPILABLE_FEATURES: features JSCompiler will never transpile, like
6767
// regex syntax.
68-
shadowOptions.setWarningLevel(DiagnosticGroups.UNSTRANSPILABLE_FEATURES, CheckLevel.OFF);
68+
shadowOptions.setWarningLevel(DiagnosticGroups.UNTRANSPILABLE_FEATURES, CheckLevel.OFF);
6969
}
7070

7171
private void setSafeOptimizationAssumptions() {

src/com/google/javascript/jscomp/DiagnosticGroups.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public static DiagnosticGroup forName(String name) {
170170
// TODO(b/123768968) remove this diagnostic group, do not allow this suppression. Instead the only
171171
// work around should be to raise the output language to a high enough level. We need to suppress
172172
// right now because we don't have any language output level higher than ES5.
173-
public static final DiagnosticGroup UNSTRANSPILABLE_FEATURES =
173+
public static final DiagnosticGroup UNTRANSPILABLE_FEATURES =
174174
DiagnosticGroups.registerGroup(
175175
"untranspilableFeatures", ReportUntranspilableFeatures.UNTRANSPILABLE_FEATURE_PRESENT);
176176

test/com/google/javascript/jscomp/integration/IntegrationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5010,7 +5010,7 @@ async function bar() {
50105010
""");
50115011

50125012
// But we won't emit ES 2018 regexp features.
5013-
DiagnosticGroup untranspilable = DiagnosticGroups.UNSTRANSPILABLE_FEATURES;
5013+
DiagnosticGroup untranspilable = DiagnosticGroups.UNTRANSPILABLE_FEATURES;
50145014
test(options, googDefine + "/foo/s", untranspilable);
50155015
test(options, googDefine + "/(?<foo>.)/", untranspilable);
50165016
test(options, googDefine + "/(?<=foo)/", untranspilable);
@@ -5040,7 +5040,7 @@ public void testBrowserFeaturesetYear2021() {
50405040
googDefineOutput + "document.querySelector('input')?.children?.[0];");
50415041

50425042
// We won't emit regexp lookbehind.
5043-
DiagnosticGroup untranspilable = DiagnosticGroups.UNSTRANSPILABLE_FEATURES;
5043+
DiagnosticGroup untranspilable = DiagnosticGroups.UNTRANSPILABLE_FEATURES;
50445044
test(options, googDefine + "/(?<=oo)/", untranspilable);
50455045
test(options, googDefine + "/(?<!foo)/", untranspilable);
50465046

0 commit comments

Comments
 (0)