Skip to content

Commit

Permalink
Merge pull request #17464 from vector-im/t3chguy/allSettled
Browse files Browse the repository at this point in the history
Add Modernizr test for Promise.allSettled given js-sdk and react-sdk depend on it
  • Loading branch information
t3chguy authored May 25, 2021
2 parents f78be26 + a70803a commit 07cf2f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vector/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ function checkBrowserFeatures() {
// ES2018: http://262.ecma-international.org/9.0/#sec-promise.prototype.finally
window.Modernizr.addTest("promiseprototypefinally", () =>
typeof window.Promise?.prototype?.finally === "function");
// ES2020: http://262.ecma-international.org/#sec-promise.allsettled
window.Modernizr.addTest("promiseallsettled", () =>
typeof window.Promise?.allSettled === "function");
// ES2018: https://262.ecma-international.org/9.0/#sec-get-regexp.prototype.dotAll
window.Modernizr.addTest("regexpdotall", () => (
window.RegExp?.prototype &&
Expand Down

0 comments on commit 07cf2f2

Please sign in to comment.