Chromium Code Reviews
DescriptionMake Completer.complete handle a Future with a misbehaving "then" call.
Instead of throwing and getting into an invalid state (isChained but won't ever
complete), the synchronous error from trying to call "then" is used to complete
the future.
This should never happen in practice - it requires a "then" implementation that
is missing or throwing even when given valid arguments.
R=sgjesse@google.com
Committed: https://code.google.com/p/dart/source/detail?r=44629
Patch Set 1 #
Total comments: 2
Patch Set 2 : Expand explanation #
Messages
Total messages: 5 (1 generated)
|
||||||||||||||||||||||||||||