Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Unified Diff: sdk/lib/io/string_transformer.dart

Issue 12328104: Change new List(n) to return fixed length list. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698