Browse Source

Merge pull request #17464 from vector-im/t3chguy/allSettled

Add Modernizr test for Promise.allSettled given js-sdk and react-sdk depend on it
pull/17478/head
Michael Telatynski 1 year ago committed by GitHub
parent
commit
07cf2f20fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/vector/index.ts

3
src/vector/index.ts

@ -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 &&

Loading…
Cancel
Save