title: JS how to convert to string the Error Object from the window.error?
body: <p>I implemented:</p>
  
  <pre><code> window.onerror = function (m, s, l, c, e) {
   }
  </code></pre>
  
  <p>Where the e is the Error Object. For example, it contains:</p>
  
  <pre><code>ReferenceError: rde is not defined
      at Object.bla.cs (domain.pt/bla.js:418:17)
      at n.aanv (domain.pt/bla.js:125:29)
  </code></pre>
  
  <p>If i make <code>e.toString()</code>, only the first line is returned. How to get the 3 lines? Thank you.</p>