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

Unified Diff: dart/runtime/lib/string_patch.dart

Issue 59073003: Version 0.8.10.4 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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 | « dart/runtime/lib/simd128.cc ('k') | dart/runtime/lib/typed_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/runtime/lib/string_patch.dart
===================================================================
--- dart/runtime/lib/string_patch.dart (revision 29808)
+++ dart/runtime/lib/string_patch.dart (working copy)
@@ -468,8 +468,8 @@
List<String> split(Pattern pattern) {
if ((pattern is String) && pattern.isEmpty) {
- List<String> result = new List<String>(length);
- for (int i = 0; i < length; i++) {
+ List<String> result = new List<String>(this.length);
+ for (int i = 0; i < this.length; i++) {
result[i] = this[i];
}
return result;
« no previous file with comments | « dart/runtime/lib/simd128.cc ('k') | dart/runtime/lib/typed_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698