diff options
author | jeresig <jeresig@gmail.com> | 2010-01-07 12:21:58 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2010-01-07 12:21:58 -0500 |
commit | 308d6cdad023da190ace2a698ee4815ed8dad9c5 (patch) | |
tree | af610d55b1df2c945dc977e4a10d9dd4810cb730 /test/data/badjson.js | |
parent | c14fa516ae5525f93af562910d22f0a836ebdde3 (diff) | |
download | jquery-308d6cdad023da190ace2a698ee4815ed8dad9c5.tar.gz jquery-308d6cdad023da190ace2a698ee4815ed8dad9c5.zip |
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.
Diffstat (limited to 'test/data/badjson.js')
-rw-r--r-- | test/data/badjson.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/data/badjson.js b/test/data/badjson.js new file mode 100644 index 000000000..ec41ee5d6 --- /dev/null +++ b/test/data/badjson.js @@ -0,0 +1 @@ +{bad: 1} |