Make sure that a parsererror is thrown whenever malformed JSON comes back from a server (so that the Ajax error handler is called). Makes it uniform across browsers that do and don't have JSON.parse support.
This commit is contained in:
parent
c14fa516ae
commit
308d6cdad0
3 changed files with 34 additions and 8 deletions
1
test/data/badjson.js
Normal file
1
test/data/badjson.js
Normal file
|
@ -0,0 +1 @@
|
|||
{bad: 1}
|
Loading…
Add table
Add a link
Reference in a new issue