chrome 53 not catching unhandled rejected promises
<p>I'm using <code>chrome</code> 53 on development and a certain API call returns a rejected <code>bluebird</code> promise. Although I have error handlers in my code, the rejected promise is not caught, just consoled.</p>

<p>the API call:</p>

<pre><code>function call() {
    return new Promise((resolve, reject) =&gt; {
        superagent
            .get('some url')
            .end((err, res) =&gt; {
                if(err) {
                    return reject(err);
                }
                resolve(res);
            });
    });
}
</code></pre>

<p>and the error handlers:</p>

<pre><code>window.onerror = ((message, filename, lineno, colno, error) =&gt; {
    const {unhandledErrors} = this.state;

    if(!error) {
        return;
    }

    error.timestamp = moment().format('YYYY-MM-DD HH:mm:ss');

    //handling error in React
    this.setState({
        unhandledErrors: updateUnhandledErrors(unhandledErrors, error)
    });

    console.error(error);
});

window.onunhandledrejection = (({reason}) =&gt; {
    const {unhandledErrors} = this.state;
    const error = reason;
    error.timestamp = moment().format('YYYY-MM-DD HH:mm:ss');

    //handling error in React
    this.setState({
        unhandledErrors: updateUnhandledErrors(unhandledErrors, error)
    });

    console.error(error);
});

// bluebird handler
window.addEventListener('unhandledrejection', e =&gt; {
    e.preventDefault();
    const {unhandledErrors} = this.state;

    const error = e.detail.reason;
    error.timestamp = moment().format('YYYY-MM-DD HH:mm:ss');

    //handling error in React
    this.setState({
        unhandledErrors: updateUnhandledErrors(unhandledErrors, error)
    });

    console.error(error);
});
</code></pre>

<p>Works on <code>Firefox</code> 31 and <code>Chromium</code> 35</p>