Unhandled Promise rejection when rejecting Promise in Angular 2
<p>I am currently trying to implement my own Promise to be used inside Angular 2. If I <code>reject</code> the promise, I'll get an <code>Error: Uncaught (in promise): nope(…)</code>, but only on the first Promise to be rejected.</p>

<p>It's <code>Angular 2.0.0-rc.4</code>, but I noticed this in other behaviors. My question is, is this an error in my understanding of Promises, or is this a bug that should be reported to the Angular project?</p>

<p>Sample code:</p>

<pre class="lang-js prettyprint-override"><code>import {Component} from '@angular/core';
import {bootstrap} from '@angular/platform-browser-dynamic'
@Component({
    template: "TestComponent"
})
class TestComponent {
}
bootstrap(TestComponent, []);

let p = new Promise((resolve, reject) =&gt; {
    console.log("create promise");
    reject("nope");
});
console.log("setting up");
p.then(r =&gt; console.log("then: " + r));
p.catch(e =&gt; console.log("reject: " + e));
console.log("setup done");
</code></pre>

<p>Console (Google Chrome 51.0.2704.106, Linux 64 bit):</p>

<pre><code>create promise
setting up
setup done
reject: nope
Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.
Unhandled Promise rejection: nope ; Zone: &lt;root&gt; ; Task: Promise.then ; Value: nope
Error: Uncaught (in promise): nope(…)
</code></pre>