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:
jeresig 2010-01-07 12:21:58 -05:00
parent c14fa516ae
commit 308d6cdad0
3 changed files with 34 additions and 8 deletions

1
test/data/badjson.js Normal file
View file

@ -0,0 +1 @@
{bad: 1}