title: error params are null in window.onerror in google chrome
body: <p>I have html page which causes js error and an global handler for it.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;&lt;/title&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;script type="text/javascript" src="js/jquery-3.1.0.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
          $(function () {
              window.onerror = function (errorMsg, url, lineNumber) {
                  alert('Error: ' + errorMsg + ' Script: ' + url + ' Line: ' + lineNumber);
              }
  
              throw new Error("this is error");
          });
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div&gt;Test page&lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I receive alert: "Error: Script error. Script:  Line: 0". As you can see error info is missing. How can I get this info here like I can see errors in developer tools. Any extensions for chrome are not suitable. I must catch errors with their info in javascript.</p>