| 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 f51abf55c92f3d379393d710e25a32263ef755ed..bc9c6becb2785286d2bd51df3ee9b818ea7dc8de 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/dart2js.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/dart2js.dart
|
| @@ -376,7 +376,7 @@ Future compile(List<String> argv) {
|
| }
|
|
|
| RandomAccessFile output =
|
| - new File(uriPathToNative(uri.path)).openSync(mode: FileMode.WRITE);
|
| + new File(uri.toFilePath()).openSync(mode: FileMode.WRITE);
|
| int charactersWritten = 0;
|
|
|
| writeStringSync(String data) {
|
| @@ -445,7 +445,7 @@ void writeString(Uri uri, String text) {
|
| if (uri.scheme != 'file') {
|
| fail('Error: Unhandled scheme ${uri.scheme}.');
|
| }
|
| - var file = new File(uriPathToNative(uri.path)).openSync(mode: FileMode.WRITE);
|
| + var file = new File(uri.toFilePath()).openSync(mode: FileMode.WRITE);
|
| file.writeStringSync(text);
|
| file.closeSync();
|
| }
|
|
|