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 df7e34a89ce5a806c8fabc9f49eaf7cb47e388c9..7bb166fd246a7ef3ad8ec929f5595424c702a776 100644 |
--- a/sdk/lib/html/dart2js/html_dart2js.dart |
+++ b/sdk/lib/html/dart2js/html_dart2js.dart |
@@ -29220,9 +29220,9 @@ class _EventStream<T extends Event> extends Stream<T> { |
bool get isBroadcast => true; |
StreamSubscription<T> listen(void onData(T event), |
- { void onError(AsyncError error), |
- void onDone(), |
- bool cancelOnError}) { |
+ { void onError(error), |
+ void onDone(), |
+ bool cancelOnError}) { |
return new _EventStreamSubscription<T>( |
this._target, this._eventType, onData, this._useCapture); |
@@ -29264,7 +29264,7 @@ class _EventStreamSubscription<T extends Event> extends StreamSubscription<T> { |
} |
/// Has no effect. |
- void onError(void handleError(AsyncError error)) {} |
+ void onError(void handleError(error)) {} |
/// Has no effect. |
void onDone(void handleDone()) {} |
@@ -30618,10 +30618,8 @@ class _ModelTreeObserver { |
node._model = model; |
node._modelChangedStream.add(node); |
} |
- } on AsyncError catch (e) { |
- e.throwDelayed(); |
} catch (e, s) { |
- new AsyncError(e, s).throwDelayed(); |
+ new Future.immediateError(e, s); |
} |
for (var child = node.$dom_firstChild; child != null; |
child = child.nextNode) { |