Ticket #8648 (closed enhancement: fixed)
Modify deferred.resolveWith to throw errors with a useful call stack
|Reported by:||kdavis@…||Owned by:|
Currently, if an error is throw in a deferred callback, the call stack starts with resolveWith, instead of the actual function that threw the error. This happens because the error is caught in resolveWith and then rethrown.