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

Unified Diff: sdk/lib/io/http_parser.dart

Issue 25094002: Adapt streams for additional stackTrace argument. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove types in closures. Created 7 years, 2 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 | « sdk/lib/io/http_impl.dart ('k') | sdk/lib/io/secure_server_socket.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/http_parser.dart
diff --git a/sdk/lib/io/http_parser.dart b/sdk/lib/io/http_parser.dart
index d885008b05ae0e746a66bee7b391a06ff7def8b7..2cdfee3a32ad4e3ad86666a8deeab0472fa5c40d 100644
--- a/sdk/lib/io/http_parser.dart
+++ b/sdk/lib/io/http_parser.dart
@@ -126,7 +126,7 @@ class _HttpDetachedIncoming extends Stream<List<int>> {
}
StreamSubscription<List<int>> listen(void onData(List<int> event),
- {void onError(error),
+ {Function onError,
void onDone(),
bool cancelOnError}) {
return controller.stream.listen(
@@ -220,7 +220,7 @@ class _HttpParser
StreamSubscription<_HttpIncoming> listen(void onData(_HttpIncoming event),
- {void onError(error),
+ {Function onError,
void onDone(),
bool cancelOnError}) {
return _controller.stream.listen(onData,
@@ -771,8 +771,8 @@ class _HttpParser
_controller.close();
}
- void _onError(e) {
- _controller.addError(e);
+ void _onError(e, [StackTrace stackTrace]) {
+ _controller.addError(e, stackTrace);
}
String get version {
« no previous file with comments | « sdk/lib/io/http_impl.dart ('k') | sdk/lib/io/secure_server_socket.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698