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

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

Issue 53313007: Change dart:io Platform.script to return a URI. Change all uses of Platform.script to work with th… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix dom.py docs 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 a827bf6ea03e02ee597e117055cf8118d5adc0b5..e4d6cafe5a00064209fa65c55e435301d7cceb5e 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);
}

Powered by Google App Engine
This is Rietveld 408576698