Re: Handling error in Promises

2015-01-13 Thread Marius Gundersen
A `promise.done()` method that throws if it receives a rejected promise has been discussed, but the consensus seems to be that browsers instead should report on rejected unhandled promises that are garbage collected. This is already implemented in Firefox (at least in the DevTools edition), where

Re: Handling error in Promises

2015-01-13 Thread Jeff Morrison
You might try reading through some of the previous threads that talk about the trickiness of surfacing promise errors in the general case. Unfortunately these threads usually devolve into an endless thread of discussion and debate that become next to impossible to actually read through later

Re: Handling error in Promises

2015-01-13 Thread Jeremy Martin
Awhile back I did my best to summarize some of the previous es-discuss threads on a related GitHub thread: https://github.com/iojs/io.js/issues/11#issuecomment-65971175 Please see the immediately following comment as well for some clarification on how Bluebird surfaces unhandled rejections. On