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

Unified Diff: tests/lib/async/catch_errors27_test.dart

Issue 25354003: Redo StreamTransformers so they work with Stack traces. (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
« no previous file with comments | « tests/lib/async/catch_errors26_test.dart ('k') | tests/lib/async/event_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/catch_errors27_test.dart
diff --git a/tests/lib/async/catch_errors27_test.dart b/tests/lib/async/catch_errors27_test.dart
index ab89f16b113a7937e7797f24d1ecff0a0f3ec1ad..65bfbfba8139641f65339028c29251730b533994 100644
--- a/tests/lib/async/catch_errors27_test.dart
+++ b/tests/lib/async/catch_errors27_test.dart
@@ -28,8 +28,8 @@ main() {
})
.asBroadcastStream();
stream
- .transform(new StreamTransformer(
- handleError: (e, sink) => sink.add("error $e")))
+ .transform(new StreamTransformer.fromHandlers(
+ handleError: (e, st, sink) { sink.add("error $e"); }))
.listen((x) { events.add("stream $x"); });
runAsync(() {
controller.add(1);
« no previous file with comments | « tests/lib/async/catch_errors26_test.dart ('k') | tests/lib/async/event_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698