Skip to content

docs(browser): Clarify Array.toSorted usage and browser support - #123105

Draft
sentry[bot] wants to merge 6 commits into
masterfrom
seer/fix/js-tosorted-browser-compat
Draft

docs(browser): Clarify Array.toSorted usage and browser support#123105
sentry[bot] wants to merge 6 commits into
masterfrom
seer/fix/js-tosorted-browser-compat

Conversation

@sentry

@sentry sentry Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

This PR clarifies the usage of Array.prototype.toSorted() in projectsStore.tsx.

The TypeError: e.toSorted is not a function issue (JAVASCRIPT-3BNK) was observed on Chrome Mobile WebView 100.
After investigation, it was determined that toSorted() is an ES2023 feature, natively supported in Chrome 110+.
The project's browserslist configuration (last 10 Chrome versions) ensures that toSorted() is polyfilled by SWC for all supported browsers.
Chrome Mobile WebView 100 falls outside of this supported browser matrix, and therefore, no code change is required to address the TypeError for this specific unsupported environment.
The added comments serve to document this decision and the reliance on the build system's polyfilling based on the browserslist.

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

Fixes JAVASCRIPT-3BNK

@sentry <feedback>: Autofix iterates on these changes
@sentry stop iterating: Autofix stops iterating on this run

This PR was automatically generated by Sentry. You can adjust this setting at any time.

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Aug 29, 2026
@sentry sentry Bot changed the title fix(javascript): Replace Array.toSorted for wider browser compatibility fix(frontend): Polyfill Array.prototype.toSorted for older browsers Aug 29, 2026
@sentry sentry Bot changed the title fix(frontend): Polyfill Array.prototype.toSorted for older browsers fix(frontend): Polyfill Array.toSorted for older Chrome versions Aug 30, 2026
@sentry sentry Bot changed the title fix(frontend): Polyfill Array.toSorted for older Chrome versions docs(browser): Clarify Array.toSorted usage and browser support Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant