Re: Promises: final steps
John Barton <[email protected]>
| Newsgroups | gmane.comp.web.dom.general,gmane.comp.lang.javascript.ecmascript4.general |
|---|---|
| Message-ID | <CA+2jLuKLyGE0MyUmsgdERoteF4TX9xG9UNhZgw81U9MtcvsDaw@mail.gmail.com> |
On Thu, Sep 5, 2013 at 9:04 AM, Domenic Denicola < [email protected]> wrote: > From: Kevin Smith [[email protected]] > > > Indeed, for a non-GUI embedding like Node, they *must* be debuggable > using just a console. > > This is an important point. A provisional idea that preserves our desire > to not introduce new features to promises themselves, requiring user choice > at authoring time, might be some kind of `console.unhandledRejections()` > function which returns you a snapshot of the current unhandled rejections > bucket. > IMO the promises library should not plan to push its undesired features onto to console. Unhandled rejections are a property of Promise, not console. jjb