Skip to content

Commit

Permalink
Merge pull request #28053 from element-hq/removeRegexUnicodesModerniz…
Browse files Browse the repository at this point in the history
…rCheck

Remove regexpunicodesets modernizr check
  • Loading branch information
langleyd authored Sep 16, 2024
2 parents f42f7c9 + baac24a commit eadff63
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/vector/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,6 @@ function checkBrowserFeatures(): boolean {
);
// ES2019: http://262.ecma-international.org/10.0/#sec-object.fromentries
window.Modernizr.addTest("objectfromentries", () => typeof window.Object?.fromEntries === "function");
// ES2024: https://tc39.es/ecma262/2024/#sec-get-regexp.prototype.unicodesets
window.Modernizr.addTest(
"regexpunicodesets",
() => window.RegExp?.prototype && "unicodeSets" in window.RegExp.prototype,
);
// ES2024: https://402.ecma-international.org/9.0/#sec-intl.segmenter
// The built-in modernizer 'intl' check only checks for the presence of the Intl object, not the Segmenter,
// and older Firefox has the former but not the latter, so we add our own.
Expand Down

0 comments on commit eadff63

Please sign in to comment.