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

Unified Diff: sdk/lib/utf/utf_stream.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: 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/utf/utf_stream.dart
diff --git a/sdk/lib/utf/utf_stream.dart b/sdk/lib/utf/utf_stream.dart
index d9149d61fa2775b8a1883bdf982f84a768ff7e81..a1f2c6722104c14f8ab8b58814dfa9b6a767a56d 100644
--- a/sdk/lib/utf/utf_stream.dart
+++ b/sdk/lib/utf/utf_stream.dart
@@ -43,7 +43,7 @@ abstract class _StringDecoder implements StreamTransformer<List<int>, String> {
onDone: () {
if (_carry != null) {
_controller.add(new String.fromCharCodes(
- new List.fixedLength(_carry.length, fill: _replacementChar)));
+ new List.filled(_carry.length, _replacementChar)));
}
_controller.close();
},

Powered by Google App Engine
This is Rietveld 408576698