title: How to print a message in error handling with try, catch
body: <p>I have a simple example:</p>
  
  <pre><code>var str = '{ "test"  : 1, }'
  
  try {
      JSON.parse(str);
  } catch (e) {
      console.log(e)
  }
  </code></pre>
  
  <p>result:</p>
  
  <p>[SyntaxError: Unexpected token }]</p>
  
  <p>How to print all error info ?</p>
  
  <p>Expected result:</p>
  
  <pre><code>undefined:1
  { "test"  : 1, }
           ^
  SyntaxError: Unexpected token }
  </code></pre>