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

Unified Diff: tests/lib/async/event_helper.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_errors27_test.dart ('k') | tests/lib/async/first_regression_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/event_helper.dart
diff --git a/tests/lib/async/event_helper.dart b/tests/lib/async/event_helper.dart
index 42a6c285ef433de5bc8c0c48de35cc2c5edf4238..31a40b9c7fe7fc27ec7e5f984bceeaf2280dde89 100644
--- a/tests/lib/async/event_helper.dart
+++ b/tests/lib/async/event_helper.dart
@@ -80,7 +80,7 @@ class Events implements EventSink {
events.add(new DataEvent(value));
}
- void addError(error) {
+ void addError(error, [StackTrace stackTrace]) {
if (trace) print("Events#$hashCode: addError($error)");
events.add(new ErrorEvent(error));
}
@@ -91,7 +91,9 @@ class Events implements EventSink {
}
// Error helper for creating errors manually..
- void error(var value) { addError(value); }
+ void error(var value, [StackTrace stackTrace]) {
+ addError(value, stackTrace);
+ }
/** Replay the captured events on a sink. */
void replay(EventSink sink) {
« no previous file with comments | « tests/lib/async/catch_errors27_test.dart ('k') | tests/lib/async/first_regression_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698