Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Unified Diff: sdk/lib/async/stream_controller.dart

Issue 48483002: Remove deprecated parts of dart:async. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/async/stream.dart ('k') | sdk/lib/async/stream_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/async/stream_controller.dart
diff --git a/sdk/lib/async/stream_controller.dart b/sdk/lib/async/stream_controller.dart
index b40ffb5f2d3d158799bd6c33ee35f0d618fe7ff6..d86a993726d0e728206c0d1b44468671f32a4a51 100644
--- a/sdk/lib/async/stream_controller.dart
+++ b/sdk/lib/async/stream_controller.dart
@@ -400,11 +400,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);
}
@@ -609,7 +604,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);
}
}
« no previous file with comments | « sdk/lib/async/stream.dart ('k') | sdk/lib/async/stream_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698