Skip to content
Permalink
Browse files

Make sure the exception has some level of parity with the error from …

…json2.js.
  • Loading branch information
jeresig committed Jan 7, 2010
1 parent 308d6cd commit a9665bbe9bb50b060b3f8f2f5facf2e1d1115f37
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit a9665bb

Please sign in to comment.
You can’t perform that action at this time.