5 ms·
Chrome at least logs the error to console http://jsfiddle.net/sb1zqjdm/ http://jsfiddle.net/sb1zqjdm/ (using native promises) And it seems that the "Pause on
by esamatti 11y ago
Chrome at least logs the error to console
http://jsfiddle.net/sb1zqjdm/ http://jsfiddle.net/sb1zqjdm/ (using native promises)
And it seems that the "Pause on exceptions" debugger feature works on unhandled promise errors. Doesn't seem too bad to me.
- bsimpson 11y agoThis is a recent addition due to complaints like mine. Hopefully it becomes standard, because it's the way it should have always been.
- esamatti 11y agoWonder whether there is anything to add to the standard. Isn't this just a devtools issue?
- BonsaiDen 11y agoThe standard should simply be changed to throw by default, but I guess the train has already left the station and so we're left with "bugs by design" before the spec has even been fully implemented by all vendors :( But then again, in it's current "minimal" state of design, the Harmony Promises are inferior to any of the dedicated Promise A Plus implementations out there (e.g. Bluebird) and at least under Node there is little to no reason to use the built-in Promise object at this point in time.
- inglor 11y agohttps://github.com/domenic/unhandled-rejections-browser-spec https://github.com/domenic/unhandled-rejections-browser-spec
- inglor 11y agoWell - the moral is to complain more, when I wrote and advocated for detection in io.js I needed people on my side - Domenic needs people to complain and help now for the browser spec - we're always a hand short :)