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

Unified Diff: corelib/src/implementation/future_implementation.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 | « corelib/src/future.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: corelib/src/implementation/future_implementation.dart
diff --git a/corelib/src/implementation/future_implementation.dart b/corelib/src/implementation/future_implementation.dart
index 21ee08f26d01b5118749cc8b4ed67c1b0c838c85..58d78433a059fb005f9dc620449624e7b51a7f33 100644
--- a/corelib/src/implementation/future_implementation.dart
+++ b/corelib/src/implementation/future_implementation.dart
@@ -172,7 +172,7 @@ class FutureImpl<T> implements Future<T> {
Future transform(Function transformation) {
final completer = new Completer();
handleException((e) {
- completer.completeException(e);
+ completer.completeException(e, this.stackTrace);
return true;
});
then((v) {
@@ -191,7 +191,7 @@ class FutureImpl<T> implements Future<T> {
Future chain(Function transformation) {
final completer = new Completer();
handleException((e) {
- completer.completeException(e);
+ completer.completeException(e, this.stackTrace);
return true;
});
then((v) {
@@ -203,7 +203,7 @@ class FutureImpl<T> implements Future<T> {
return;
}
future.handleException((e) {
- completer.completeException(e);
+ completer.completeException(e, future.stackTrace);
return true;
});
future.then((b) => completer.complete(b));
« no previous file with comments | « corelib/src/future.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698