| Index: pkg/dev_compiler/lib/src/compiler/code_generator.dart
|
| diff --git a/pkg/dev_compiler/lib/src/compiler/code_generator.dart b/pkg/dev_compiler/lib/src/compiler/code_generator.dart
|
| index 6cc873085de59bfb706dd49027afe90186225141..a642fe4da82618211f0ff3717842618acf9f03c7 100644
|
| --- a/pkg/dev_compiler/lib/src/compiler/code_generator.dart
|
| +++ b/pkg/dev_compiler/lib/src/compiler/code_generator.dart
|
| @@ -5460,8 +5460,9 @@ String jsLibraryName(String libraryRoot, LibraryElement library) {
|
| // E.g., "foo/bar.dart" and "foo$47bar.dart" would collide.
|
| qualifiedPath = uri.pathSegments.skip(1).join(customSeparator);
|
| } else if (isWithin(libraryRoot, uri.toFilePath())) {
|
| - qualifiedPath =
|
| - fromUri(uri).substring(libraryRoot.length).replaceAll(separator, customSeparator);
|
| + qualifiedPath = fromUri(uri)
|
| + .substring(libraryRoot.length)
|
| + .replaceAll(separator, customSeparator);
|
| } else {
|
| // We don't have a unique name.
|
| throw 'Invalid library root. $libraryRoot does not contain ${uri
|
|
|