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

Unified Diff: dart/lib/compiler/implementation/filenames.dart

Issue 10266011: Shoehorn dart2js into the SDK. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 8 years, 8 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: dart/lib/compiler/implementation/filenames.dart
diff --git a/dart/lib/compiler/implementation/filenames.dart b/dart/lib/compiler/implementation/filenames.dart
index 82ff21c5b05309cc4b70873a494cdac466d6bdcc..2c76740484af51681b300474ea2a7c773cb6cfe5 100644
--- a/dart/lib/compiler/implementation/filenames.dart
+++ b/dart/lib/compiler/implementation/filenames.dart
@@ -27,9 +27,9 @@ String uriPathToNative(String path) {
if (Platform.operatingSystem() != 'windows') return path;
path = path.toLowerCase();
if (path.length > 3 && path[0] == '/' && path[2] == ':') {
- return path.substring(1);
+ return path.substring(1).replaceAll('/', '\\');
} else {
- return path;
+ return path.replaceAll('/', '\\');
}
}

Powered by Google App Engine
This is Rietveld 408576698