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

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

Issue 3009893002: Avoid relying on fuzzy arrow for arity check in _FutureListener (Closed)
Patch Set: Created 3 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/async/future_impl.dart
diff --git a/sdk/lib/async/future_impl.dart b/sdk/lib/async/future_impl.dart
index 14bac61ce77aeb5293a51c7d00c05f6ef4378dc9..8569cbf7a82277d1d8768148f0a5672669c2630a 100644
--- a/sdk/lib/async/future_impl.dart
+++ b/sdk/lib/async/future_impl.dart
@@ -136,7 +136,7 @@ class _FutureListener<S, T> {
FutureOr<T> handleError(AsyncError asyncError) {
assert(handlesError && hasErrorCallback);
- if (errorCallback is ZoneBinaryCallback) {
+ if (errorCallback is ZoneBinaryCallback<dynamic, Null, Null>) {
floitsch 2017/08/31 07:54:52 Might as well use the correct type (see 2 lines be
var typedErrorCallback = errorCallback as Object
/*=ZoneBinaryCallback<FutureOr<T>, Object, StackTrace>*/;
return _zone.runBinary(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698