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

Unified Diff: pkg/barback/lib/src/stream_replayer.dart

Issue 25094002: Adapt streams for additional stackTrace argument. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. 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
Index: pkg/barback/lib/src/stream_replayer.dart
diff --git a/pkg/barback/lib/src/stream_replayer.dart b/pkg/barback/lib/src/stream_replayer.dart
index 177e13d609f6cc9bb0fafa00ec85ae8d4a8007b6..67e75fab1883943f1ec4b54b8e201174528430f2 100644
--- a/pkg/barback/lib/src/stream_replayer.dart
+++ b/pkg/barback/lib/src/stream_replayer.dart
@@ -34,10 +34,10 @@ class StreamReplayer<T> {
for (var controller in _controllers) {
controller.add(data);
}
- }, onError: (error) {
+ }, onError: (error, [StackTrace stackTrace]) {
nweiz 2013/10/07 18:49:51 [_buffer] now needs to track the stack trace along
floitsch 2013/10/10 14:22:52 Done.
_buffer.add(new Either<T, dynamic>.withSecond(error));
for (var controller in _controllers) {
- controller.addError(error);
+ controller.addError(error, stackTrace);
}
}, onDone: () {
_isClosed = true;

Powered by Google App Engine
This is Rietveld 408576698