title: Javascript error (SCRIPT5022) in IE10
body: <p>I wrote this code:</p>
  
  <pre><code>AjxException.reportScriptError =
   function(ex) {
  if (AjxException.reportScriptErrors &amp;&amp; AjxException.scriptErrorHandler &amp;&amp; !(ex    
         instanceof AjxException)) {
      AjxException.scriptErrorHandler(ex);
  }
  throw ex;
  };
  </code></pre>
  
  <p>it's fine in all browsers including IE9,8 but I got this error in IE10:</p>
  
  <pre><code> SCRIPT5022: InvalidCharacterError 
  </code></pre>
  
  <p>mentioned <code>throw ex;</code>
  Why this happens in IE10 and how could I solve this?</p>