Index: sdk/lib/async/stream_controller.dart |
diff --git a/sdk/lib/async/stream_controller.dart b/sdk/lib/async/stream_controller.dart |
index ba3fd617bf5f0642102dcb44984d9dba2de147cb..f1083a91268e8c996a177cffd35026094b6fbd0e 100644 |
--- a/sdk/lib/async/stream_controller.dart |
+++ b/sdk/lib/async/stream_controller.dart |
@@ -377,11 +377,6 @@ abstract class _StreamController<T> implements StreamController<T>, |
*/ |
void addError(Object error, [StackTrace stackTrace]) { |
if (!_mayAddEvent) throw _badEventState(); |
- if (stackTrace != null) { |
- // Force stack trace overwrite. Even if the error already contained |
- // a stack trace. |
- _attachStackTrace(error, stackTrace); |
- } |
_addError(error, stackTrace); |
} |
@@ -585,7 +580,7 @@ Future _runGuarded(_NotificationHandler notificationHandler) { |
if (result is Future) return result; |
return null; |
} catch (e, s) { |
- Zone.current.handleUncaughtError(_asyncError(e, s), s); |
+ Zone.current.handleUncaughtError(e, s); |
} |
} |