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

Unified Diff: runtime/bin/builtin.dart

Issue 134753005: Fix error in processing dart-ext urls with a relative path. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/builtin.dart
diff --git a/runtime/bin/builtin.dart b/runtime/bin/builtin.dart
index 51e6dce17b8ec0c6c061b0e8a49aa8ba67752497..cb3691aa8d7763703b4d5fe4f0177b70de113c1c 100644
--- a/runtime/bin/builtin.dart
+++ b/runtime/bin/builtin.dart
@@ -244,7 +244,9 @@ String _filePathFromUri(String userUri) {
return uri.toFilePath();
break;
case 'dart-ext':
Søren Gjesse 2014/01/27 20:57:51 This should just be new Uri.file(uri.path) tha
- return new Uri(scheme: 'file',
+ // Relative file URIs don't start with file:///.
+ var scheme = (uri.path.startsWith('/') ? 'file' : '');
+ return new Uri(scheme: scheme,
host: uri.host,
path: uri.path).toFilePath();
break;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698