News for hackers. Stuff that matters.
Re:Cancelable Promises: Why was this proposal withdrawn? by RodericDay on Monday December 19, 2016 @08:10AM (#13211118)
> Promises have a bit of a footgun where by default they can swallow errors unless you explicitly add a listener for them.

"a bit of a footgun" is such a huge understatement. Now that I know about this, I'm skeptical too.

Re:Cancelable Promises: Why was this proposal withdrawn? by cwmma on Monday December 19, 2016 @08:16AM (#13211159)
and you've missed the last part of that paragraph where I mention unhandledRejection events becoming a defacto standard which straddles a nice line between avoiding false positives (error listener attached latter in the program) and errors going into a black hole
Re:Cancelable Promises: Why was this proposal withdrawn? by Rapzid on Monday December 19, 2016 @08:43AM (#13211294)
Not sure if that's gone in yet so I've continued using Bluebird for my stuff. You can(and should!) create a global handler for unhandled rejections. It's almost always a bad sign if you get one.
Re:Cancelable Promises: Why was this proposal withdrawn? by RodericDay on Monday December 19, 2016 @08:46AM (#13211314)
Then don't call them "a bit of a footgun". It's a huge issue, in the process of being maybe fixed, and underplaying it to argue your side does not help matters.
Re:Cancelable Promises: Why was this proposal withdrawn? by spion on Monday December 19, 2016 @08:57AM (#13211368)
Its already fixed. Thats why it was just "a bit" of a footgun i.e. not unfixable.