Chromium Code Reviews| Index: sdk/lib/utf/utf_stream.dart |
| diff --git a/sdk/lib/utf/utf_stream.dart b/sdk/lib/utf/utf_stream.dart |
| index 00717b83b0ae7356e36ce510d5ec82aa4016bdf9..1480aa156ab1ff136dcbc75ba63070ed106f6576 100644 |
| --- a/sdk/lib/utf/utf_stream.dart |
| +++ b/sdk/lib/utf/utf_stream.dart |
| @@ -52,7 +52,7 @@ abstract class _StringDecoder |
| _carry.addAll(carry); |
| _carry.addAll(bytes); |
| } else { |
| - _carry = bytes.getRange(currentPos, bytes.length - currentPos); |
| + _carry = bytes.sublist(currentPos); |
| } |
| break; |
| } else { |