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 bc5be230e7739744c32e726ae03112ef07587d26..284607b23773f20d4d9f3ec7747b6e3b8fe6539b 100644 |
--- a/sdk/lib/_internal/compiler/implementation/dart2js.dart |
+++ b/sdk/lib/_internal/compiler/implementation/dart2js.dart |
@@ -345,7 +345,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(FileMode.WRITE); |
+ var file = new File(uriPathToNative(uri.path)).openSync(mode: FileMode.WRITE); |
file.writeStringSync(text); |
file.closeSync(); |
} |