Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit b54bb88

Browse files
authored
Migrate runZoned to runZonedGuarded (#22198)
1 parent 07c780b commit b54bb88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/web_ui/dev/browser.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ abstract class Browser {
6767
// Don't return a Future here because there's no need for the caller to wait
6868
// for the process to actually start. They should just wait for the HTTP
6969
// request instead.
70-
runZoned(() async {
70+
runZonedGuarded(() async {
7171
var process = await startBrowser();
7272
_processCompleter.complete(process);
7373

@@ -110,7 +110,7 @@ abstract class Browser {
110110
}
111111

112112
_onExitCompleter.complete();
113-
}, onError: (dynamic error, StackTrace stackTrace) {
113+
}, (dynamic error, StackTrace stackTrace) {
114114
// Ignore any errors after the browser has been closed.
115115
if (_closed) {
116116
return;

0 commit comments

Comments
 (0)