Closed Ajaxy closed 9 years ago
done
for that, but it can likely be missed somewhere. And it's out of promises spec.Pause On Caught Exceptions
, but it can be harassing with the code that uses many try..catch
blocks, for example in loops, for example jQuery.done
through all those vow callbacks to the orginal error spot.function start () {
vow.resolve(1).then(thenWithError).done();
}
function thenWithError () {
throw new Error('error');
}
start();
leads to start()
, not to thenWithError()
where error was actually thrown.
http://fiddle.jshell.net/zu89eydy/show/
Discussed by voice, rejected
Why not use async call stack in the dev tools?