Skip to content

Normative: Ignore indexed properties when in-place sorting a length-1 array - #4103

Open
gibson042 wants to merge 1 commit into
tc39:mainfrom
gibson042:gh-4101-sort-single-element-array
Open

gibson042 wants to merge 1 commit into
tc39:mainfrom
gibson042:gh-4101-sort-single-element-array

Conversation

@gibson042

Copy link
Copy Markdown
Member

Fixes #4101

@gibson042 gibson042 added normative change Affects behavior required to correctly evaluate some ECMAScript source text needs consensus This needs committee consensus before it can be eligible to be merged. needs test262 tests The proposal should specify how to test an implementation. Ideally via github.com/tc39/test262 labels Nov 25, 2026
@github-actions

Copy link
Copy Markdown

The rendered spec preview for this PR is available as a single page at https://tc39.es/ecma262/pr/4103 and as multiple pages at https://tc39.es/ecma262/pr/4103/multipage .

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs consensus This needs committee consensus before it can be eligible to be merged. needs test262 tests The proposal should specify how to test an implementation. Ideally via github.com/tc39/test262 normative change Affects behavior required to correctly evaluate some ECMAScript source text

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Return early from Array.prototype.sort when the length is less than two

2 participants