Commit a9665bbe authored by jeresig's avatar jeresig

Make sure the exception has some level of parity with the error from json2.js.

parent 308d6cda
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment