title: phantomjs - page.onError - trace is always an empty object?
body: <p>In the documentation of <strong>phantomjs</strong> they say the following:</p>
  
  <p><em><strong>Error Handling</strong>
  To easily catch an error occured in a web page, whether it is a syntax error or other thrown exception, an onError handler for the WebPage object has been added. An example on such a handler is:</em></p>
  
  <pre><code>page.onError = function (msg, trace) {
      console.log(msg);
      trace.forEach(function(item) {
          console.log('  ', item.file, ':', item.line);
      })
  }
  </code></pre>
  
  <p><em>Now if the page opens a site with some JavaScript exceptions, a detailed information (including the stack trace) will be printed out.</em></p>
  
  <p>Well, I have created a few 'broken' pages (pages where the javascript causes an exception) and I get 
  the error that gets thrown but nothing in the trace</p>
  
  <p>Can somebody help ?</p>
  
  <p>Here is an example of a case I had:</p>
  
  <p>html: </p>
  
  <pre><code>&lt;!docType&gt;
  &lt;html&gt;&lt;head&gt;&lt;/head&gt;
  &lt;body&gt;
  &lt;script src='broken.js'&gt;&lt;/script&gt; 
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>script: broken.js</p>
  
  <pre><code>1. // this script is broken at line 5.
  2. // 
  3. var i=20;
  4. 
  5. i = somethingThatDontExist
  6. 
  7. // we will never be here...
  8. 
  </code></pre>