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

Unified Diff: runtime/bin/string_stream.dart

Issue 10414021: Reland: Add more API fuzzing and fix the issues encountered. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 months 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 | « runtime/bin/file_impl.dart ('k') | tests/standalone/io/file_fuzz_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/string_stream.dart
diff --git a/runtime/bin/string_stream.dart b/runtime/bin/string_stream.dart
index 16ba1a7c3462fb72877a3d1225f4d4a5732d998c..cfbc37c982ac9e09050245d7574a64faee39de06 100644
--- a/runtime/bin/string_stream.dart
+++ b/runtime/bin/string_stream.dart
@@ -37,7 +37,11 @@ class _StringDecoders {
} else if (encoding == Encoding.ASCII) {
return new _AsciiDecoder();
} else {
- throw new StreamException("Unsupported encoding ${encoding.name}");
+ if (encoding is Encoding) {
+ throw new StreamException("Unsupported encoding ${encoding.name}");
+ } else {
+ throw new StreamException("Unsupported encoding ${encoding}");
+ }
}
}
}
« no previous file with comments | « runtime/bin/file_impl.dart ('k') | tests/standalone/io/file_fuzz_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698