From a70803a36ea36ef2cdc20cfad237ff806a8cd0e2 Mon Sep 17 00:00:00 2001
From: Michael Telatynski <7t3chguy@gmail.com>
Date: Tue, 25 May 2021 16:12:54 +0100
Subject: [PATCH] Add Modernizr test for Promise.allSettled given js-sdk and
 react-sdk depend on it

---
 src/vector/index.ts | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/vector/index.ts b/src/vector/index.ts
index 948bc6a9ea..75c6a76276 100644
--- a/src/vector/index.ts
+++ b/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 &&