Sorry, we can't show the code for this error
-
absolutelyfreeweb last edited by
Error in eventhandler for runtime.onMessage: [object object]
why not ?? where is the error ? Could you see why and try to add the exact error ?
error was thrown using json_parse from https://github.com/douglascrockford/JSON-js instead of the JSON object (just replacing the call)
-
absolutelyfreeweb last edited by
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');