Skip to content

Commit 5919a12

Browse files
committed
Library root fix for win
[email protected] Jacob: do we need a fix in jsDebuggingLibraryName too? could that code be refactored - it looks like it duplicates a lot of logic. Review-Url: https://codereview.chromium.org/2899363002 .
1 parent 93864c0 commit 5919a12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/dev_compiler/lib/src/compiler/code_generator.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6033,7 +6033,8 @@ String jsLibraryName(String libraryRoot, LibraryElement library) {
60336033
// E.g., "foo/bar.dart" and "foo$47bar.dart" would collide.
60346034
qualifiedPath = uri.pathSegments.skip(1).join(encodedSeparator);
60356035
} else if (isWithin(libraryRoot, uri.toFilePath())) {
6036-
qualifiedPath = uri.path
6036+
qualifiedPath = uri
6037+
.toFilePath()
60376038
.substring(libraryRoot.length)
60386039
.replaceAll(separator, encodedSeparator);
60396040
} else {

0 commit comments

Comments
 (0)