Here is the code that I wrote:
AjxException.reportScriptError =
function(ex) {
if (AjxException.reportScriptErrors && AjxException.scriptErrorHandler && !(ex
instanceof AjxException)) {
AjxException.scriptErrorHandler(ex);
}
throw ex;
};
This code works fine in all browsers, including IE9 and IE8. However, when testing in IE10, I encountered the following error:
SCRIPT5022: InvalidCharacterError
The error specifically pointed to throw ex;
. Can anyone explain why this happens in IE10 and suggest a solution?