On Chrome (not on Firefox though),
JSON.parse("")
fails with "Script error." You can reproduce it by running the script above or by running https://jsfiddle.net/xupf27nh/1/. Why the script error? There is no cors activity here...?
try {
JSON.parse("")
} catch(e) {
throw e;
}
correctly prints the error message "message": "Uncaught SyntaxError: Unexpected end of JSON input",. Why is it different this time? And why doesnt
a.b.c.d.e.f()
fail with script error but correctly displays the error message?