taylorhakes/promise-polyfill

Missing Promise.allSettled

Closed this issue · 4 comments

Promise.allSettled has been accepted and is already in production Firefox/Chrome.

This page has details on implementation / other polyfills that have already implemented it: https://github.com/tc39/proposal-promise-allSettled

Here's the mdn page: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/allSettled

There was a previous PR that was abandoned. If someone has time, please add tests and submit a new PR. I will happily merge a PR to add this API. #112

Added #121 which includes tests. Not sure how rigorous we want the tests to be but can adjust as needed.

Released in 8.2.0. Thanks @Jamie5