diff options
author | jeresig <jeresig@gmail.com> | 2010-01-07 12:25:50 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2010-01-07 12:25:50 -0500 |
commit | a9665bbe9bb50b060b3f8f2f5facf2e1d1115f37 (patch) | |
tree | 66c2a7f6808de7fa719f4388976c8b89c2c55977 | |
parent | 308d6cdad023da190ace2a698ee4815ed8dad9c5 (diff) | |
download | jquery-a9665bbe9bb50b060b3f8f2f5facf2e1d1115f37.tar.gz jquery-a9665bbe9bb50b060b3f8f2f5facf2e1d1115f37.zip |
Make sure the exception has some level of parity with the error from json2.js.
-rw-r--r-- | src/ajax.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax.js b/src/ajax.js index 4ba4548de..73e1db689 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -584,7 +584,7 @@ jQuery.extend({ data = (new Function("return " + data))(); } else { - throw "JSON Syntax Error: " + data; + throw "JSON.parse"; } // If the type is "script", eval it in global context |