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 8d3c7da267dd827a5c2765fd143b337892ddbe12..ea67f626c78702a7d3334b7cc2c26e9d3f520436 100644 |
--- a/sdk/lib/_internal/compiler/implementation/dart2js.dart |
+++ b/sdk/lib/_internal/compiler/implementation/dart2js.dart |
@@ -322,7 +322,7 @@ void compile(List<String> argv) { |
} |
} |
- var controller = new StreamController<String>(); |
+ var controller = new StreamController<String>(sync: true); |
controller.stream.listen(output.write, onDone: onDone); |
sink = new CountingSink(controller); |
return sink; |