Index: sdk/lib/convert/utf.dart |
diff --git a/sdk/lib/convert/utf.dart b/sdk/lib/convert/utf.dart |
index 332598759af6b4276d9e36506699df1f656df2ae..df7551a7540459a34f33812ed56975c385a8187d 100644 |
--- a/sdk/lib/convert/utf.dart |
+++ b/sdk/lib/convert/utf.dart |
@@ -436,12 +436,7 @@ class _Utf8Decoder { |
void addSingleBytes(int from, int to) { |
assert(from >= startIndex && from <= endIndex); |
assert(to >= startIndex && to <= endIndex); |
- if (from == 0 && to == codeUnits.length) { |
- _stringSink.write(new String.fromCharCodes(codeUnits)); |
- } else { |
- _stringSink.write( |
- new String.fromCharCodes(codeUnits.sublist(from, to))); |
- } |
+ _stringSink.write(new String.fromCharCodes(codeUnits, from, to)); |
} |
int i = startIndex; |