async/await catch rejected Promises
<p>I'm just getting started with <code>async/await</code> and running into a problem.</p>

<p>I can do as expected:</p>

<pre><code>async function x() {
  let y = await Promise.resolve(42);
  return y;
}
</code></pre>

<p>But when I reject a <code>Promise</code>:</p>

<pre><code>async function bad() {
  try {
   await Promise.reject('bad');
  } catch(err) {
    err; //AssertionError: TypeError: (0 , _errorHandler2.default) is not a function
  }
}
</code></pre>

<p>How do I catch <code>rejected Promises</code> with <code>async/await</code>?</p>