MindscapeHQ / raygun4reactnative

ReactNative crash reporting SDK for Raygun
MIT License
3 stars 3 forks source link

Fix undefined Promise.prototype.finally when using promise rejection tracking #60

Closed Widdershin closed 2 years ago

Widdershin commented 2 years ago

When tracking unhandled Promise rejections, we polyfill the Promise global. The promise polyfill module is split into a number of submodules, that implement different parts of the Promise specification.

As we were only requiring es6-extensions, Promise.prototype.finally and Promise.prototype.done were not defined. We can fix this by requiring the done and finally implementations from the promise module.

Fixes #42