Prepare Flutter for SDK changes to runZoned. (#52953)

The `runZoned` method deprecates the `onError` parameter.
Invocations using that parameter must use `runZonedGuarded` instead.

This prepares Flutter for the deprecation. The same places need to be migrated to using
`runZonedGuarded` when the SDK change has been ported to Flutter.
Then the deprecated member will be removed in a follow-up CL when the most important
packages have been migrated.
This commit is contained in:
Lasse R.H. Nielsen
2020-03-24 16:34:17 +01:00
committed by GitHub
parent 10571920c0
commit af5194dbfd
4 changed files with 5 additions and 5 deletions

View File

@@ -158,7 +158,7 @@ void testUsingContext(
_printBufferedErrors(context);
rethrow;
}
}, onError: (dynamic error, StackTrace stackTrace) {
}, onError: (Object error, StackTrace stackTrace) { // ignore: deprecated_member_use
io.stdout.writeln(error);
io.stdout.writeln(stackTrace);
_printBufferedErrors(context);