Index: dart/sdk/lib/_internal/pub/lib/src/utils.dart |
diff --git a/dart/sdk/lib/_internal/pub/lib/src/utils.dart b/dart/sdk/lib/_internal/pub/lib/src/utils.dart |
index c17546e7be8489e8c2794764fcf2b92acee9ec17..0ed773c5dc546d48cc5695fa28ce74a093184e8f 100644 |
--- a/dart/sdk/lib/_internal/pub/lib/src/utils.dart |
+++ b/dart/sdk/lib/_internal/pub/lib/src/utils.dart |
@@ -572,8 +572,8 @@ Future awaitObject(object) { |
/// Returns the path to the library named [libraryName]. The library name must |
/// be globally unique, or the wrong library path may be returned. |
String libraryPath(String libraryName) { |
- var libraries = currentMirrorSystem().findLibrary(new Symbol(libraryName)); |
- return path.fromUri(libraries.single.uri); |
+ var lib = currentMirrorSystem().findLibrary(new Symbol(libraryName)); |
+ return path.fromUri(lib.uri); |
} |
/// Gets a "special" string (ANSI escape or Unicode). On Windows, returns |