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

Unified Diff: lib/src/chain.dart

Issue 1871763002: Fix the remaining strong mode warnings. (Closed) Base URL: https://github.com/dart-lang/stack_trace.git@master
Patch Set: Created 4 years, 8 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 | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | test/chain/chain_test.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/chain.dart
diff --git a/lib/src/chain.dart b/lib/src/chain.dart
index 6de670f222ce1a8f88524e7d5d082d0b3798fa19..a27e8a68d9288ab526fb27b86a5e142d5df28bae 100644
--- a/lib/src/chain.dart
+++ b/lib/src/chain.dart
@@ -78,7 +78,8 @@ class Chain implements StackTrace {
};
}
- return runZoned(callback, onError: newOnError);
+ // TODO(rnystrom): Remove this cast if runZoned() gets a generic type.
+ return runZoned(callback, onError: newOnError) as dynamic/*=T*/;
}
var spec = new StackZoneSpecification(onError);
@@ -91,7 +92,8 @@ class Chain implements StackTrace {
}
}, zoneSpecification: spec.toSpec(), zoneValues: {
#stack_trace.stack_zone.spec: spec
- });
+ }) as dynamic/*=T*/;
+ // TODO(rnystrom): Remove this cast if runZoned() gets a generic type.
}
/// Returns [futureOrStream] unmodified.
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | test/chain/chain_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698