Skip to content

Commit

Permalink
Enable --instrument_async_context by default in JSCompiler for all …
Browse files Browse the repository at this point in the history
…JS builds, with the exception of whitespace-only builds.

PiperOrigin-RevId: 662248606
  • Loading branch information
shicks authored and copybara-github committed Aug 14, 2024
1 parent 859f56e commit c906392
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/com/google/javascript/jscomp/deps/ModuleNames.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ static String toJSIdentifier(String path) {
.replace('\\', '$')
.replace('@', '$')
.replace('+', '$')
.replace('!', '$')
.replace('-', '_')
.replace(':', '_')
.replace('.', '_')
Expand Down
7 changes: 0 additions & 7 deletions test/com/google/javascript/jscomp/deps/ModuleLoaderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -260,13 +260,6 @@ public void testCanonicalizePath() {
assertThat(ModuleNames.canonicalizePath("/a/..")).isEqualTo("/");
}

@Test
public void testToJSIdentifier() {
assertThat(ModuleNames.toJSIdentifier("com/example/test")).isEqualTo("com$example$test");
assertThat(ModuleNames.toJSIdentifier("file://a/b.jar!com/example/test"))
.isEqualTo("file_$$a$b_jar$com$example$test");
}

@Test
public void testEscapePath() {
ModuleLoader loader =
Expand Down

0 comments on commit c906392

Please sign in to comment.