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

Unified Diff: corelib/src/future.dart

Issue 10704090: Pipe the stack traces of errors through Future operations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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 | « no previous file | corelib/src/implementation/future_implementation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: corelib/src/future.dart
diff --git a/corelib/src/future.dart b/corelib/src/future.dart
index 9c84680d8e03d9f328d01e355f8da2a25a826b1a..6b2fa19e3e82b3c5abb094af4f21570117fab0a5 100644
--- a/corelib/src/future.dart
+++ b/corelib/src/future.dart
@@ -217,7 +217,9 @@ class Futures {
}
});
future.handleException((exception) {
- if (!result.isComplete) completer.completeException(exception);
+ if (!result.isComplete) {
+ completer.completeException(exception, future.stackTrace);
+ }
return true;
});
}
« no previous file with comments | « no previous file | corelib/src/implementation/future_implementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698