Chromium Code Reviews

Issue 25027004: Add second argument to Future error handlers. (Closed)

Created:
7 years, 2 months ago by floitsch
Modified:
7 years, 2 months ago
Reviewers:
nweiz, Lasse Reichstein Nielsen
CC:
reviews_dartlang.org, nweiz, Bob Nystrom
Visibility:
Public.

Description

Add second argument to Future error handlers. R=lrn@google.com, nweiz@google.com Committed: https://code.google.com/p/dart/source/detail?r=28510

Patch Set 1 #

Patch Set 2 : Add tests. #

Patch Set 3 : Upload #

Total comments: 16

Patch Set 4 : Addressed comments. #

Total comments: 5

Patch Set 5 : Address comments. #

Unified diffs Side-by-side diffs Stats (+751 lines, -138 lines)
M pkg/barback/lib/src/cancelable_future.dart View 1 chunk +4 lines, -4 lines 0 comments
M pkg/scheduled_test/lib/src/substitute_future.dart View 2 chunks +4 lines, -4 lines 0 comments
M pkg/scheduled_test/lib/src/value_future.dart View 1 chunk +2 lines, -2 lines 0 comments
M sdk/lib/_internal/pub/lib/src/error_group.dart View 1 chunk +2 lines, -2 lines 0 comments
M sdk/lib/async/async_error.dart View 2 chunks +52 lines, -0 lines 0 comments
M sdk/lib/async/future.dart View 3 chunks +13 lines, -5 lines 0 comments
M sdk/lib/async/future_impl.dart View 14 chunks +45 lines, -28 lines 0 comments
M sdk/lib/async/stream_controller.dart View 1 chunk +1 line, -1 line 0 comments
M sdk/lib/async/stream_impl.dart View 2 chunks +3 lines, -3 lines 0 comments
M sdk/lib/async/zone.dart View 28 chunks +154 lines, -24 lines 0 comments
M tests/lib/async/catch_errors.dart View 1 chunk +1 line, -1 line 0 comments
A + tests/lib/async/stack_trace01_test.dart View 1 chunk +15 lines, -8 lines 0 comments
A + tests/lib/async/stack_trace02_test.dart View 1 chunk +8 lines, -8 lines 0 comments
A + tests/lib/async/stack_trace03_test.dart View 1 chunk +10 lines, -9 lines 0 comments
A tests/lib/async/stack_trace04_test.dart View 1 chunk +27 lines, -0 lines 0 comments
A tests/lib/async/stack_trace05_test.dart View 1 chunk +29 lines, -0 lines 0 comments
A tests/lib/async/stack_trace06_test.dart View 1 chunk +30 lines, -0 lines 0 comments
A tests/lib/async/stack_trace07_test.dart View 1 chunk +30 lines, -0 lines 0 comments
A tests/lib/async/stack_trace08_test.dart View 1 chunk +36 lines, -0 lines 0 comments
A + tests/lib/async/stack_trace11_test.dart View 1 chunk +17 lines, -9 lines 0 comments
A + tests/lib/async/stack_trace12_test.dart View 1 chunk +10 lines, -9 lines 0 comments
A + tests/lib/async/stack_trace13_test.dart View 1 chunk +11 lines, -9 lines 0 comments
A tests/lib/async/stack_trace14_test.dart View 1 chunk +28 lines, -0 lines 0 comments
A tests/lib/async/stack_trace15_test.dart View 1 chunk +30 lines, -0 lines 0 comments
A tests/lib/async/stack_trace16_test.dart View 1 chunk +31 lines, -0 lines 0 comments
A tests/lib/async/stack_trace17_test.dart View 1 chunk +31 lines, -0 lines 0 comments
A tests/lib/async/stack_trace18_test.dart View 1 chunk +38 lines, -0 lines 0 comments
A tests/lib/async/stack_trace19_test.dart View 1 chunk +39 lines, -0 lines 0 comments
A + tests/lib/async/stack_trace22_test.dart View 1 chunk +16 lines, -9 lines 0 comments
A tests/lib/async/stack_trace23_test.dart View 1 chunk +29 lines, -0 lines 0 comments
M tests/lib/async/zone_debug_test.dart View 1 chunk +2 lines, -1 line 0 comments
M tests/lib/async/zone_run_guarded_test.dart View 1 chunk +3 lines, -2 lines 0 comments

Messages

Total messages: 12 (0 generated)
floitsch
7 years, 2 months ago (2013-10-03 12:51:05 UTC) #1
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/25027004/diff/6001/sdk/lib/async/async_error.dart File sdk/lib/async/async_error.dart (right): https://codereview.chromium.org/25027004/diff/6001/sdk/lib/async/async_error.dart#newcode30 sdk/lib/async/async_error.dart:30: // want to make the class public. We ...
7 years, 2 months ago (2013-10-04 09:17:39 UTC) #2
floitsch
https://codereview.chromium.org/25027004/diff/6001/sdk/lib/async/async_error.dart File sdk/lib/async/async_error.dart (right): https://codereview.chromium.org/25027004/diff/6001/sdk/lib/async/async_error.dart#newcode30 sdk/lib/async/async_error.dart:30: // want to make the class public. On 2013/10/04 ...
7 years, 2 months ago (2013-10-05 17:22:59 UTC) #3
floitsch
Feel free to take another look. I will commit together with the follow-up CLs.
7 years, 2 months ago (2013-10-05 17:23:59 UTC) #4
floitsch
Adding Nathan and Bob for the scheduled test and barback changes.
7 years, 2 months ago (2013-10-05 18:09:47 UTC) #5
floitsch
Adding Nathan and Bob for the scheduled test and barback changes. (this time really...)
7 years, 2 months ago (2013-10-05 18:10:18 UTC) #6
Lasse Reichstein Nielsen
still LGTM. https://codereview.chromium.org/25027004/diff/14001/sdk/lib/async/async_error.dart File sdk/lib/async/async_error.dart (right): https://codereview.chromium.org/25027004/diff/14001/sdk/lib/async/async_error.dart#newcode65 sdk/lib/async/async_error.dart:65: Error e = error; Soon to be ...
7 years, 2 months ago (2013-10-07 12:39:20 UTC) #7
nweiz
One change, otherwise pub/pkg changes lgtm. https://codereview.chromium.org/25027004/diff/14001/sdk/lib/_internal/pub/lib/src/error_group.dart File sdk/lib/_internal/pub/lib/src/error_group.dart (right): https://codereview.chromium.org/25027004/diff/14001/sdk/lib/_internal/pub/lib/src/error_group.dart#newcode182 sdk/lib/_internal/pub/lib/src/error_group.dart:182: Future then(onValue(value), { ...
7 years, 2 months ago (2013-10-07 20:30:39 UTC) #8
floitsch
https://codereview.chromium.org/25027004/diff/14001/sdk/lib/_internal/pub/lib/src/error_group.dart File sdk/lib/_internal/pub/lib/src/error_group.dart (right): https://codereview.chromium.org/25027004/diff/14001/sdk/lib/_internal/pub/lib/src/error_group.dart#newcode182 sdk/lib/_internal/pub/lib/src/error_group.dart:182: Future then(onValue(value), { Function onError }) { On 2013/10/07 ...
7 years, 2 months ago (2013-10-10 13:47:33 UTC) #9
Lasse Reichstein Nielsen
https://codereview.chromium.org/25027004/diff/14001/sdk/lib/_internal/pub/lib/src/error_group.dart File sdk/lib/_internal/pub/lib/src/error_group.dart (right): https://codereview.chromium.org/25027004/diff/14001/sdk/lib/_internal/pub/lib/src/error_group.dart#newcode182 sdk/lib/_internal/pub/lib/src/error_group.dart:182: Future then(onValue(value), { Function onError }) { I actually ...
7 years, 2 months ago (2013-10-10 13:49:14 UTC) #10
nweiz
https://codereview.chromium.org/25027004/diff/14001/sdk/lib/_internal/pub/lib/src/error_group.dart File sdk/lib/_internal/pub/lib/src/error_group.dart (right): https://codereview.chromium.org/25027004/diff/14001/sdk/lib/_internal/pub/lib/src/error_group.dart#newcode182 sdk/lib/_internal/pub/lib/src/error_group.dart:182: Future then(onValue(value), { Function onError }) { On 2013/10/10 ...
7 years, 2 months ago (2013-10-10 15:09:20 UTC) #11
floitsch
7 years, 2 months ago (2013-10-11 11:43:03 UTC) #12
Message was sent while issue was closed.
Committed patchset #5 manually as r28510 (presubmit successful).

Powered by Google App Engine