Skip to content

Commit

Permalink
Add Modernizr test for Promise.allSettled given js-sdk and react-sdk …
Browse files Browse the repository at this point in the history
…depend on it
  • Loading branch information
t3chguy committed May 25, 2021
1 parent f78be26 commit a70803a
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 a70803a

Please sign in to comment.