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

Unified Diff: pkg/scheduled_test/lib/src/schedule.dart

Issue 93143002: Make pkg/stack_trace use stack chains. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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/scheduled_test/lib/src/schedule.dart
diff --git a/pkg/scheduled_test/lib/src/schedule.dart b/pkg/scheduled_test/lib/src/schedule.dart
index 7cc30fb88c8e771650eaa6e560c4b3f3409621c8..5bf59478c4e373f31ac34fd0cc11ff667263371f 100644
--- a/pkg/scheduled_test/lib/src/schedule.dart
+++ b/pkg/scheduled_test/lib/src/schedule.dart
@@ -426,7 +426,7 @@ class TaskQueue {
}
var task = new Task(() {
- return new Future.sync(fn).catchError((e, stackTrace) {
+ return syncFuture(fn).catchError((e, stackTrace) {
throw new ScheduleError.from(_schedule, e, stackTrace: stackTrace);
});
}, description, this);
@@ -495,15 +495,15 @@ class TaskQueue {
_schedule.currentQueue != this || pendingCallbacks.isEmpty;
_totalCallbacks++;
- var trace = new Trace.current();
+ var chain = new Chain.current();
var pendingCallback = new PendingCallback._(() {
var fullDescription = description;
if (fullDescription == null) {
fullDescription = "Out-of-band operation #${_totalCallbacks}";
}
- var stackString = prefixLines(terseTraceString(trace));
- fullDescription += "\n\nStack trace:\n$stackString";
+ var stackString = prefixLines(terseTraceString(chain));
+ fullDescription += "\n\nStack chain:\n$stackString";
return fullDescription;
});
_pendingCallbacks.add(pendingCallback);
« no previous file with comments | « pkg/scheduled_test/lib/src/descriptor/pattern_descriptor.dart ('k') | pkg/scheduled_test/lib/src/schedule_error.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698