On 14/05/13 10:29 PM, David Bruant wrote: >>> The purpose of done is to avoid a to chain so that uncaught errors >>> aren't propagated without being caught. When you call .done and the >>> last promise had an error, the devtools can tell you so (telling you >>> before .done could be confusing as the error might be later caught) >>> >> >> `.done()` **does not** provide a guarantee against silent failure. > It does in the Q library. It will also with native support in > combination with devtools. > I can't see how the current spec supports that. Are you saying devtools will do something like the following? Future.prototype._done = Future.prototype.done; Future.prototype.done = function(acceptCB, rejectCB) { this._done(null, function(err) { throw err; }); this._done(acceptCB, rejectCB); }Received on Tuesday, 14 May 2013 23:20:04 UTC
This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:13 UTC