Migrate runZoned to runZonedGuarded (flutter/engine#22198)

This commit is contained in:
Zachary Anderson
2020-10-29 11:02:35 -07:00
committed by GitHub
parent a2befaef62
commit dc3cf6a04e

View File

@@ -67,7 +67,7 @@ abstract class Browser {
// Don't return a Future here because there's no need for the caller to wait
// for the process to actually start. They should just wait for the HTTP
// request instead.
runZoned(() async {
runZonedGuarded(() async {
var process = await startBrowser();
_processCompleter.complete(process);
@@ -110,7 +110,7 @@ abstract class Browser {
}
_onExitCompleter.complete();
}, onError: (dynamic error, StackTrace stackTrace) {
}, (dynamic error, StackTrace stackTrace) {
// Ignore any errors after the browser has been closed.
if (_closed) {
return;