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

Unified Diff: lib/src/frontend/future_matchers.dart

Issue 1159923010: Use the Zone API for registerException. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: more changes Created 5 years, 7 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
Index: lib/src/frontend/future_matchers.dart
diff --git a/lib/src/frontend/future_matchers.dart b/lib/src/frontend/future_matchers.dart
index 8a38192301e3d8fd3fe036b1991f0f2811ed57ee..a5b86daa80bd1afcd2712adac85ad57fff042329 100644
--- a/lib/src/frontend/future_matchers.dart
+++ b/lib/src/frontend/future_matchers.dart
@@ -51,10 +51,7 @@ class _Completes extends Matcher {
if (_matcher != null) expect(value, _matcher);
Invoker.current.removeOutstandingCallback();
}, onError: (error, trace) {
- if (error is TestFailure) {
- Invoker.current.handleError(error, trace);
- return;
- }
+ if (error is TestFailure) throw error;
var id = _id == '' ? '' : '${_id} ';
var reason = 'Expected future ${id}to complete successfully, '
« CHANGELOG.md ('K') | « lib/src/frontend/expect_async.dart ('k') | lib/test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698