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

Unified Diff: sdk/lib/_internal/compiler/js_lib/js_mirrors.dart

Issue 582753002: dart2js: add --preserve-uris flag. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update comments in test. Created 6 years, 3 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/js_lib/js_mirrors.dart
diff --git a/sdk/lib/_internal/compiler/js_lib/js_mirrors.dart b/sdk/lib/_internal/compiler/js_lib/js_mirrors.dart
index 03fc44a4a856083abd3b58843bcd2a84d2027236..b018b44ae9d61e711a939ed4a051f40f452b5704 100644
--- a/sdk/lib/_internal/compiler/js_lib/js_mirrors.dart
+++ b/sdk/lib/_internal/compiler/js_lib/js_mirrors.dart
@@ -346,7 +346,9 @@ class JsLibraryMirror extends JsDeclarationMirror with JsObjectMirror
Uri get uri {
preserveUris();
- return _uri;
+ if (_uri != "") return _uri;
+ // The Uri has been compiled out. Create a URI from the simple name.
+ return new Uri(scheme: "missing", path: n(simpleName));
}
Symbol get qualifiedName => simpleName;

Powered by Google App Engine
This is Rietveld 408576698