From e580a64ad70fe37c009ad8bc461137c312afc100 Mon Sep 17 00:00:00 2001 From: Zachary Anderson Date: Thu, 29 Oct 2020 09:44:29 -0700 Subject: [PATCH] Migrate runZoned to runZonedGuarded --- lib/web_ui/dev/browser.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/web_ui/dev/browser.dart b/lib/web_ui/dev/browser.dart index a63aa9bfc999b..957031e424458 100644 --- a/lib/web_ui/dev/browser.dart +++ b/lib/web_ui/dev/browser.dart @@ -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;