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

Unified Diff: sdk/lib/convert/ascii.dart

Issue 1409053007: More optimization of _uriEncode. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Call directly to specialized UTF-8 version. Created 5 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 | « no previous file | sdk/lib/core/core.dart » ('j') | sdk/lib/core/uri.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/convert/ascii.dart
diff --git a/sdk/lib/convert/ascii.dart b/sdk/lib/convert/ascii.dart
index c8b59037711f2c08d9ada6fc4877076f8c8247d4..3f86852ac4a062a663b657abebf4de5fb11b8f26 100644
--- a/sdk/lib/convert/ascii.dart
+++ b/sdk/lib/convert/ascii.dart
@@ -290,7 +290,8 @@ class _SimpleAsciiDecoderSink extends ByteConversionSinkBase {
void add(List<int> source) {
for (int i = 0; i < source.length; i++) {
if ((source[i] & ~_ASCII_MASK) != 0) {
- throw new FormatException("Source contains non-ASCII bytes.");
+ throw new FormatException("Source contains non-ASCII bytes.",
+ source, i);
}
}
_sink.add(new String.fromCharCodes(source));
« no previous file with comments | « no previous file | sdk/lib/core/core.dart » ('j') | sdk/lib/core/uri.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698