Chromium Code Reviews| Index: runtime/lib/string_patch.dart |
| diff --git a/runtime/lib/string_patch.dart b/runtime/lib/string_patch.dart |
| index ec793067394b7ce24877fd859874b7e07b6a02df..11f549338be8cc80828f2aa37059c0845315c51a 100644 |
| --- a/runtime/lib/string_patch.dart |
| +++ b/runtime/lib/string_patch.dart |
| @@ -247,6 +247,9 @@ class _StringBase { |
| if (startIndex == endIndex) { |
| return ""; |
| } |
| + if ((startIndex == 0) && (endIndex == this.length)) { |
| + return this; |
| + } |
| if ((startIndex + 1) == endIndex) { |
| return this[startIndex]; |
| } |