Make sure the exception has some level of parity with the error from json2.js.
This commit is contained in:
parent
308d6cdad0
commit
a9665bbe9b
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue