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

Unified Diff: sdk/lib/async/future_impl.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 | « sdk/lib/async/broadcast_stream_controller.dart ('k') | sdk/lib/async/schedule_microtask.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/async/future_impl.dart
diff --git a/sdk/lib/async/future_impl.dart b/sdk/lib/async/future_impl.dart
index d51ebfd0569582b789fe021c2fcc373b1c5d45ca..c031162fb4533070ad636346ecbc45c217c94652 100644
--- a/sdk/lib/async/future_impl.dart
+++ b/sdk/lib/async/future_impl.dart
@@ -310,11 +310,6 @@ class _Future<T> implements Future<T> {
assert(_whenCompleteAction == null);
assert(_errorTest == null);
- if (stackTrace != null) {
- // Force the stack trace onto the error, even if it already had one.
- _attachStackTrace(error, stackTrace);
- }
-
_Future listeners = _removeListeners();
_setError(error, stackTrace);
_propagateToListeners(this, listeners);
@@ -508,7 +503,7 @@ class _Future<T> implements Future<T> {
if (hasError && identical(source._error.error, e)) {
listenerValueOrError = source._error;
} else {
- listenerValueOrError = new _AsyncError(_asyncError(e, s), s);
+ listenerValueOrError = new _AsyncError(e, s);
}
listenerHasValue = false;
}
« no previous file with comments | « sdk/lib/async/broadcast_stream_controller.dart ('k') | sdk/lib/async/schedule_microtask.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698