From bc03ba64debc3ba648ff7186d74ef15e9410e462 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 23 Jan 2025 09:47:45 +0000 Subject: [PATCH] Add modernizr check Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/vector/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vector/index.ts b/src/vector/index.ts index c398c0b788..1bacd7e250 100644 --- a/src/vector/index.ts +++ b/src/vector/index.ts @@ -49,6 +49,8 @@ function checkBrowserFeatures(): boolean { 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"); + // ES2024: https://2ality.com/2024/05/proposal-promise-with-resolvers.html + window.Modernizr.addTest("promisewithresolvers", () => typeof window.Promise?.withResolvers === "function"); // ES2018: https://262.ecma-international.org/9.0/#sec-get-regexp.prototype.dotAll window.Modernizr.addTest( "regexpdotall",