| Index: runtime/bin/process_patch.dart
|
| diff --git a/runtime/bin/process_patch.dart b/runtime/bin/process_patch.dart
|
| index 65d271f0a1f447cc2786647413181183d62f9790..6d69139ab28c5aaff4e3bb47230b7366336a418c 100644
|
| --- a/runtime/bin/process_patch.dart
|
| +++ b/runtime/bin/process_patch.dart
|
| @@ -359,13 +359,8 @@ Future<ProcessResult> _runNonInteractiveProcess(String path,
|
| Future foldStream(Stream<List<int>> stream, Encoding encoding) {
|
| if (encoding == null) {
|
| return stream
|
| - .fold(
|
| - new _BufferList(),
|
| - (buf, data) {
|
| - buf.add(data);
|
| - return buf;
|
| - })
|
| - .then((buf) => buf.readBytes());
|
| + .fold(new BytesBuilder(), (builder, data) => builder..add(data))
|
| + .then((builder) => builder.takeBytes());
|
| } else {
|
| return stream
|
| .transform(new StringDecoder(encoding))
|
|
|