| Index: sdk/lib/html/dart2js/html_dart2js.dart
|
| diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
|
| index c08daed3ed8ce5096e3619f781dee9100f0f592e..d521e63d3bf8740f857a2dbe01c1438b7941b4c0 100644
|
| --- a/sdk/lib/html/dart2js/html_dart2js.dart
|
| +++ b/sdk/lib/html/dart2js/html_dart2js.dart
|
| @@ -13274,9 +13274,7 @@ class HttpRequest extends XmlHttpRequestEventTarget native "XMLHttpRequest" {
|
| }
|
| });
|
|
|
| - xhr.onError.listen((e) {
|
| - completer.completeError(e);
|
| - });
|
| + xhr.onError.listen(completer.completeError);
|
|
|
| if (sendData != null) {
|
| xhr.send(sendData);
|
| @@ -29083,7 +29081,7 @@ class _EventStream<T extends Event> extends Stream<T> {
|
| bool get isBroadcast => true;
|
|
|
| StreamSubscription<T> listen(void onData(T event),
|
| - { void onError(error),
|
| + { Function onError,
|
| void onDone(),
|
| bool cancelOnError}) {
|
|
|
| @@ -29146,7 +29144,7 @@ class _ElementListEventStreamImpl<T extends Event> extends Stream<T>
|
|
|
| // Delegate all regular Stream behavor to our wrapped Stream.
|
| StreamSubscription<T> listen(void onData(T event),
|
| - { void onError(error),
|
| + { Function onError,
|
| void onDone(),
|
| bool cancelOnError}) =>
|
| _stream.listen(onData, onError: onError, onDone: onDone,
|
| @@ -29182,7 +29180,7 @@ class _CustomEventStreamImpl<T extends Event> extends Stream<T>
|
|
|
| // Delegate all regular Stream behavior to our wrapped Stream.
|
| StreamSubscription<T> listen(void onData(T event),
|
| - { void onError(error),
|
| + { Function onError,
|
| void onDone(),
|
| bool cancelOnError}) {
|
| return _streamController.stream.listen(onData, onError: onError,
|
| @@ -29311,7 +29309,7 @@ class _EventStreamSubscription<T extends Event> extends StreamSubscription<T> {
|
| }
|
|
|
| /// Has no effect.
|
| - void onError(void handleError(error)) {}
|
| + void onError(Function handleError) {}
|
|
|
| /// Has no effect.
|
| void onDone(void handleDone()) {}
|
|
|