title: Unable to handle errors in javascript promise
body: <p>Why doesn't it run the code "console.log(err)" below? but instead returns "TypeError: Cannot create property 'uncaught' on string 'error in promise'"</p>
  
  <pre><code>function abc() {
      throw "error in promise";
      return 123;
  };
  abc().catch(function(err) {
      console.log(err)
  }).then ( abcMessage =&gt;
      console.log(abcMessage)
  )
  </code></pre>