Index: sdk/lib/io/file_impl.dart |
diff --git a/sdk/lib/io/file_impl.dart b/sdk/lib/io/file_impl.dart |
index cd1ad334f353a039438d3d3cf255ddfc86efd142..61ed003ce45a9c71ba486f28eed05f5a98f62a2f 100644 |
--- a/sdk/lib/io/file_impl.dart |
+++ b/sdk/lib/io/file_impl.dart |
@@ -176,6 +176,11 @@ class _FileStreamConsumer extends StreamConsumer<List<int>> { |
_openFuture = _file.open(mode: mode); |
} |
+ _FileStreamConsumer.fromStdio(int fd) { |
+ assert(1 <= fd && fd <= 2); |
+ _openFuture = new Future.value(_File._openStdioSync(fd)); |
+ } |
+ |
Future<File> addStream(Stream<List<int>> stream) { |
Completer<File> completer = new Completer<File>.sync(); |
_openFuture |