ok so here is code and problem is really that if throw is used without a catch, it does not show the thrown exception anywhere. code:
alert('we are throwing an error next');
var error = function (m) {
throw {
name: "SyntaxError",
message: m,
at: at,
text: text
};
};
error('this is an error'); // <-- this does not show anywhere. Browser terminates the code not showing there was an exception thrown.
alert('this is after the error, and not reachable');