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

Unified Diff: pkg/scheduled_test/lib/src/schedule_error.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 | « pkg/polymer/test/build/common.dart ('k') | pkg/unittest/lib/src/core_matchers.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/scheduled_test/lib/src/schedule_error.dart
diff --git a/pkg/scheduled_test/lib/src/schedule_error.dart b/pkg/scheduled_test/lib/src/schedule_error.dart
index 910e4f5fcbaa03d76b9e83caa7779b90e4841aa5..264a0aab8e6afa1204ca4dec6bf42b55fcce9d7d 100644
--- a/pkg/scheduled_test/lib/src/schedule_error.dart
+++ b/pkg/scheduled_test/lib/src/schedule_error.dart
@@ -47,11 +47,10 @@ class ScheduleError {
{StackTrace stackTrace}) {
if (error is ScheduleError) return error;
- var attachedTrace = getAttachedStackTrace(error);
- if (attachedTrace != null) {
+ if (stackTrace == null && error is Error) {
// Overwrite the explicit stack trace, because it probably came from a
// rethrow in the first place.
- stackTrace = attachedTrace;
+ stackTrace = error.stackTrace;
}
if (stackTrace == null) stackTrace = new Trace.current();
« no previous file with comments | « pkg/polymer/test/build/common.dart ('k') | pkg/unittest/lib/src/core_matchers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698