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

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

Issue 20020003: Fix bad rewrite of boolean expression (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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: dart/sdk/lib/_internal/compiler/implementation/filenames.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/filenames.dart b/dart/sdk/lib/_internal/compiler/implementation/filenames.dart
index 939468e0d0b9783038d7d75014827a8f05ad9d47..eb182188c5a7f246e034641e03ff71603b4744c8 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/filenames.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/filenames.dart
@@ -11,7 +11,7 @@ import 'dart:io';
String nativeToUriPath(String filename) {
// TODO(ahe): It would be nice to use a Dart library instead.
- if (Platform.isWindows) return filename;
+ if (!Platform.isWindows) return filename;
filename = filename.replaceAll('\\', '/');
if (filename.length > 2 && filename[1] == ':') {
filename = "/$filename";
@@ -21,7 +21,7 @@ String nativeToUriPath(String filename) {
String uriPathToNative(String path) {
// TODO(ahe): It would be nice to use a Dart library instead.
- if (Platform.operatingSystem != 'windows') return path;
+ if (!Platform.isWindows) return filename;
if (path.length > 3 && path[0] == '/' && path[2] == ':') {
return path.substring(1).replaceAll('/', '\\');
} else {
« 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