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

Unified Diff: sdk/lib/async/stream_impl.dart

Issue 2698353003: unfork DDC's copy of most SDK libraries (Closed)
Patch Set: revert core_patch Created 3 years, 10 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
Index: sdk/lib/async/stream_impl.dart
diff --git a/sdk/lib/async/stream_impl.dart b/sdk/lib/async/stream_impl.dart
index 29cfbd1c3ce5cc1055f0f5240734352e7be9b7d3..c1cffd5b8c5800f2a18d4f5f2cc60676a3e014cf 100644
--- a/sdk/lib/async/stream_impl.dart
+++ b/sdk/lib/async/stream_impl.dart
@@ -144,9 +144,7 @@ class _BufferingStreamSubscription<T> implements StreamSubscription<T>,
void onError(Function handleError) {
if (handleError == null) handleError = _nullErrorHandler;
- // We are not allowed to use 'void' as type argument for the generic type,
- // so we use 'dynamic' instead.
- _onError = _registerErrorHandler<dynamic>(handleError, _zone);
+ _onError = _registerErrorHandler(handleError, _zone);
}
void onDone(void handleDone()) {
@@ -1008,7 +1006,7 @@ class _StreamIterator<T> implements StreamIterator<T> {
}
Future cancel() {
- StreamSubscription<T> subscription = _subscription;
+ StreamSubscription subscription = _subscription;
Object stateData = _stateData;
_stateData = null;
if (subscription != null) {

Powered by Google App Engine
This is Rietveld 408576698