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
test($http): ensure json deserialization errors are forwarded to error handler
Since angular@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 angular@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 angular#11433Closesangular#15689
0 commit comments