Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Unified Diff: dart/sdk/lib/_internal/pub/lib/src/utils.dart

Issue 23455028: Mirrors overhaul. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r29550. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dart/sdk/lib/_internal/lib/js_mirrors.dart ('k') | dart/sdk/lib/mirrors/mirrors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « dart/sdk/lib/_internal/lib/js_mirrors.dart ('k') | dart/sdk/lib/mirrors/mirrors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698