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 c1dae8e9abc623462132a90f8e727d516ce147e9..96c5ff1c3f085c936f058b473e26312cc2d2486b 100644 |
--- a/sdk/lib/_internal/compiler/implementation/dart2js.dart |
+++ b/sdk/lib/_internal/compiler/implementation/dart2js.dart |
@@ -358,7 +358,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; |