Skip to content

Commit f87c337

Browse files
Update closure-compiler to v20250402 (bazelbuild#658)
1 parent 39aefd7 commit f87c337

4 files changed

Lines changed: 7 additions & 11 deletions

File tree

.bazelrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Compile/run with Java 21
2+
build --java_language_version=21
3+
build --java_runtime_version=21
4+
build --tool_java_language_version=21
5+
build --tool_java_runtime_version=21

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ maven.install(
8787
maven.artifact(
8888
artifact = "closure-compiler",
8989
group = "com.google.javascript",
90-
version = "v20240317",
90+
version = "v20250402",
9191
)
9292

9393
# javacc:javacc was not updated since 2008 and relocated to net.java.dev.javacc

closure/compiler/closure_js_library.bzl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ def _closure_js_library_impl(
140140
"strictCheckTypes",
141141
"strictModuleChecks",
142142
"superfluousSuppress",
143-
"unnecessaryEscape",
144143
"underscore",
145144
]
146145

java/com/google/javascript/jscomp/JsCheckerPassConfig.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ final class JsCheckerPassConfig extends PassConfig.PassConfigDelegate {
4545
this.checks.maybeAdd(gatherModuleMetadataPass());
4646
this.checks.maybeAdd(earlyLintChecks());
4747
this.checks.maybeAdd(scopedAliases());
48-
this.checks.maybeAdd(closureRewriteClass());
4948
this.checks.maybeAdd(lateLintChecks());
5049
this.checks.maybeAdd(ijsGeneration());
5150
this.checks.maybeAdd(whitespaceWrapGoogModules());
@@ -57,7 +56,7 @@ protected PassListBuilder getChecks() {
5756
}
5857

5958
@Override
60-
protected PassListBuilder getOptimizations() {
59+
protected PassListBuilder getOptimizations(PassConfig.OptimizationPasses optimizationPasses) {
6160
return new PassListBuilder(options);
6261
}
6362

@@ -111,13 +110,6 @@ private PassFactory scopedAliases() {
111110
.build();
112111
}
113112

114-
private PassFactory closureRewriteClass() {
115-
return PassFactory.builder()
116-
.setName("closureRewriteClass")
117-
.setInternalFactory((compiler) -> new ClosureRewriteClass(compiler))
118-
.build();
119-
}
120-
121113
private PassFactory lateLintChecks() {
122114
return PassFactory.builder()
123115
.setName("lateLintChecks")

0 commit comments

Comments
 (0)