Index: sdk/lib/mirrors/mirrors.dart |
diff --git a/sdk/lib/mirrors/mirrors.dart b/sdk/lib/mirrors/mirrors.dart |
index 7fb810e9b87d3ff865768437e9ce35f6ba18f0f5..e3c968a1fec08979b3e35c273a29585feae009d1 100644 |
--- a/sdk/lib/mirrors/mirrors.dart |
+++ b/sdk/lib/mirrors/mirrors.dart |
@@ -79,10 +79,7 @@ abstract class MirrorSystem { |
* |
* If no unique library exists, an error is thrown. |
*/ |
- LibraryMirror findLibrary(Symbol libraryName) { |
- return libraries.values.singleWhere( |
- (library) => library.simpleName == libraryName); |
- } |
+ LibraryMirror findLibrary(Symbol libraryName); |
/** |
* A mirror on the isolate associated with this [MirrorSystem]. |