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

Unified Diff: runtime/bin/stream_util.dart

Issue 10206023: Make sure that errors are thrown when there is no error handler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/stream_util.dart
diff --git a/runtime/bin/stream_util.dart b/runtime/bin/stream_util.dart
index efc2f82411395bf042364c8deca19f56d3ba3ce0..57c68d312afdb56fd6c8bd8b9f87f8688a079d16 100644
--- a/runtime/bin/stream_util.dart
+++ b/runtime/bin/stream_util.dart
@@ -57,6 +57,14 @@ class _BaseDataInputStream {
_clientErrorHandler = callback;
}
+ void _reportError(e) {
+ if (_clientErrorHandler != null) {
+ _clientErrorHandler(e);
+ } else {
+ throw e;
+ }
+ }
+
abstract List<int> _read(int bytesToRead);
void _dataReceived() {
« no previous file with comments | « runtime/bin/file_impl.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698