Index: sdk/lib/async/async_error.dart |
diff --git a/sdk/lib/async/async_error.dart b/sdk/lib/async/async_error.dart |
index fc46e326dbb404c4bba187506bd464f5644c3d74..81a1e0410d0025cd903c3626269c5f8cb691fd2f 100644 |
--- a/sdk/lib/async/async_error.dart |
+++ b/sdk/lib/async/async_error.dart |
@@ -59,7 +59,7 @@ class AsyncError { |
} |
try { |
- new Timer(0, (_) { |
+ Timer.run(() { |
reportError(); |
// TODO(floitsch): we potentially want to call the global error handler |
// directly so that we can pass the stack trace. |