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

Unified Diff: runtime/lib/growable_array.dart

Issue 10808099: Always set inserted range in List.insertRange. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/growable_array.dart
diff --git a/runtime/lib/growable_array.dart b/runtime/lib/growable_array.dart
index eb907689184bebace5c14fcb87bed3b74d041324..772bec094e769e32a610ac7cb4b0d07adc5184db 100644
--- a/runtime/lib/growable_array.dart
+++ b/runtime/lib/growable_array.dart
@@ -49,10 +49,8 @@ class GrowableObjectArray<T> implements List<T> {
this,
start + length,
old_length - start);
- if (initialValue !== null) {
- for (int i = start; i < start + length; i++) {
- this[i] = initialValue;
- }
+ for (int i = start; i < start + length; i++) {
+ this[i] = initialValue;
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698