Index: sdk/lib/io/string_transformer.dart |
diff --git a/sdk/lib/io/string_transformer.dart b/sdk/lib/io/string_transformer.dart |
index c8e05de99fb20f8252e61b14d5ea0b563fd80f62..cea080ad531a86ff2e0de2fc5985de57a861a882 100644 |
--- a/sdk/lib/io/string_transformer.dart |
+++ b/sdk/lib/io/string_transformer.dart |
@@ -220,7 +220,7 @@ abstract class _SingleByteDecoder |
_SingleByteDecoder(this._replacementChar); |
void handleData(List<int> data, StreamSink<String> sink) { |
- var buffer = new List<int>.fixedLength(data.length); |
+ var buffer = new List<int>(data.length); |
for (int i = 0; i < data.length; i++) { |
int char = _decodeByte(data[i]); |
if (char < 0) char = _replacementChar; |