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

Unified Diff: sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart

Issue 11967010: Internal libraries supported. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update MockCompiler Created 7 years, 11 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
Index: sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart
diff --git a/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart b/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart
index e5dab4558e70e0cfe899e8f90be471eb8fbc11b9..81854ffce2bbcf799dc5c7e913ba80591b8739e1 100644
--- a/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart
+++ b/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart
@@ -674,7 +674,7 @@ class Dart2JsLibraryMirror extends Dart2JsContainerMirror
LibraryElement get _library => _element;
- Uri get uri => _library.uri;
+ Uri get uri => _library.canonicalUri;
DeclarationMirror get owner => null;
@@ -698,7 +698,7 @@ class Dart2JsLibraryMirror extends Dart2JsContainerMirror
}
} else {
// Use the file name as script name.
- String path = _library.uri.path;
+ String path = _library.canonicalUri.path;
return path.substring(path.lastIndexOf('/') + 1);
}
}

Powered by Google App Engine
This is Rietveld 408576698