You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
test($http): ensure json deserialization errors are forwarded to error handler
Since e13eeab,
errors thrown from onFulfilled and onRejected handlers are passed to the regular http
error handlers. Before this, JSON deserialization errors lead to hard application errors, and could
not be handled by application code. This behavior was introduced in 7b6c1d0, and originally, a malformed JSON string was forwarded
as the data to the http success response handler.
This commit adds a specifc test case, even though the behavior is unlikely to break in the future without
a change in the $q rejection handling.
Related #11433Closes#15689
0 commit comments