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

Issue 9155017: Handle defered handling of exceptions (where the exception is thrown before the (Closed)

Created:
8 years, 11 months ago by dcarlson
Modified:
8 years, 11 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Handle defered handling of exceptions (where the exception is thrown before the handler is registered). Also, don't throw the exception on calls to then(), to avoid enforcing an ordering to the then() and handleException() calls. BUG=1115 TEST= Committed: https://code.google.com/p/dart/source/detail?r=3477

Patch Set 1 #

Total comments: 2

Patch Set 2 : reduce scope of change to the agreed on part #

Patch Set 3 : quick typo fix #

Total comments: 1

Patch Set 4 : v #

Patch Set 5 : revert merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -1 line) Patch
M corelib/src/implementation/future_implementation.dart View 1 2 3 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
dcarlson
Proposed change to the behavior of exception handling on futures.
8 years, 11 months ago (2012-01-10 16:56:56 UTC) #1
Siggi Cherem (dart-lang)
+mattsh I think the change to 'handleException' makes sense: we want to preemptively handle exceptions ...
8 years, 11 months ago (2012-01-10 20:39:25 UTC) #2
dcarlson
This CL is reduced to focus on the agreed changes.
8 years, 11 months ago (2012-01-20 15:52:13 UTC) #3
Siggi Cherem (dart-lang)
8 years, 11 months ago (2012-01-21 01:50:38 UTC) #4
lgtm

http://codereview.chromium.org/9155017/diff/6001/corelib/src/implementation/f...
File corelib/src/implementation/future_implementation.dart (right):

http://codereview.chromium.org/9155017/diff/6001/corelib/src/implementation/f...
corelib/src/implementation/future_implementation.dart:94: if (null !==
_exception) {
(swap): _expression !== null

Powered by Google App Engine
This is Rietveld 408576698