Alon Burg
Alon Burg

Reputation: 2540

React-native core.js Promise polyfill does not seem to report unhandledRejection of Promises

I can't seem to trace the reason why React-Native (0.13.2) does not report ES6 unhandled promise rejection as described in core js docs

More specifically, when debugging with Chrome, and opening the console, Promise.reject() does not yield a console.error()

Any ideas?

Also - I'm not sure why is react-native pollyfilling the Promise while it should be available on JavascriptCore as well on Chrome + Webkit executors.

Upvotes: 1

Views: 1040

Answers (1)

Alon Burg
Alon Burg

Reputation: 2540

react-native is using this Promises library and not core.js Promises. This library does not support reporting unhandled exceptions

The reason for Polyfilling, at least currently with core-js and Chrome is related to this V8 bug

Upvotes: 1

Related Questions