Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Assertion failed: `SortCompare` must be an abstract closure taking 2 arguments

Open
#4 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript
Domain
tooling

Research direction

Reproduce the assertion in Chrome 90 and Safari 15 using the shim and its /auto variant, then inspect the SortIndexedProperties path and the SortCompare assertion. Done means the shim no longer throws this assertion in the reported browser cases; the issue provides no file or test path to start from.

Written by the indexing model from the issue text.

Description

When using this shim, an assertion seems to be thrown in SortIndexedProperties.

Assertion failed: SortCompare must be an abstract closure taking 2 arguments

It seems to do this in Chrome 90 and Safari 15.
I've only imported this shim and imported the /auto variant. If I can provide any additional information, please let me know.

Dominant language
JavaScript
Stars
10
Forks
1
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from es-shims/Array.prototype.toSorted

All issues in es-shims/Array.prototype.toSorted

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.