Index: sdk/lib/_internal/pub/lib/src/error_group.dart |
diff --git a/sdk/lib/_internal/pub/lib/src/error_group.dart b/sdk/lib/_internal/pub/lib/src/error_group.dart |
index 2662bd6078d25727c3f8eced8279d926997972a1..ea924e83e2f734d3b5c30a5d18010a1cb45ac2f1 100644 |
--- a/sdk/lib/_internal/pub/lib/src/error_group.dart |
+++ b/sdk/lib/_internal/pub/lib/src/error_group.dart |
@@ -127,7 +127,7 @@ class ErrorGroup { |
_isDone = true; |
_done._signalError(error, stackTrace); |
- if (!caught && !_done._hasListeners) runAsync((){ throw error; }); |
+ if (!caught && !_done._hasListeners) scheduleMicrotask((){ throw error; }); |
} |
/// Notifies [this] that one of its member [Future]s is complete. |