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

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

Issue 46063010: Change dart:io Platform.script to return a Uri. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 7 years, 2 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/dart2js.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart2js.dart b/sdk/lib/_internal/compiler/implementation/dart2js.dart
index 78825c5c1ad7820afcfaa3a8b603763e0c5cf556..2990a9ef7d4bef65dd19ecb92e1e4c3a38a7c7d4 100644
--- a/sdk/lib/_internal/compiler/implementation/dart2js.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart2js.dart
@@ -454,8 +454,8 @@ void fail(String message) {
Future compilerMain(List<String> arguments) {
var root = uriPathToNative("/$LIBRARY_ROOT");
- arguments =
- <String>['--library-root=${Platform.script}$root']..addAll(arguments);
+ arguments = <String>['--library-root=${Platform.script.toFilePath()}$root']
+ ..addAll(arguments);
return compile(arguments);
}
« no previous file with comments | « samples/sample_extension/test/sample_extension_test.dart ('k') | sdk/lib/_internal/compiler/samples/darttags/darttags.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698