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

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: 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/utf/utf_stream.dart
diff --git a/sdk/lib/utf/utf_stream.dart b/sdk/lib/utf/utf_stream.dart
index 35260fbe67d354b5943f2704af2b8543d0bad977..71dc76de7b233458525f3a305cef61bad4dd0d56 100644
--- a/sdk/lib/utf/utf_stream.dart
+++ b/sdk/lib/utf/utf_stream.dart
@@ -72,7 +72,7 @@ abstract class _StringDecoder
void handleDone(StreamSink<String> sink) {
if (_carry != null) {
sink.add(new String.fromCharCodes(
- new List.fixedLength(_carry.length, fill: _replacementChar)));
+ new List.filled(_carry.length, _replacementChar)));
}
sink.close();
}

Powered by Google App Engine
This is Rietveld 408576698