Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Normative] Make Array.prototype.sort stable #1340

Merged
merged 1 commit into from
Jan 29, 2019

Conversation

mathiasbynens
Copy link
Member

@mathiasbynens mathiasbynens commented Nov 2, 2018

@mathiasbynens mathiasbynens added editorial change 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 2, 2018
@mathiasbynens
Copy link
Member Author

Added to November agenda: tc39/agendas@4fdf671

@ljharb ljharb added normative change Affects behavior required to correctly evaluate some ECMAScript source text web reality and removed editorial change labels Nov 2, 2018
@mathiasbynens
Copy link
Member Author

This got consensus at today’s TC39 meeting. 🎉

@ljharb ljharb added has consensus This has committee consensus. and removed needs consensus This needs committee consensus before it can be eligible to be merged. labels Nov 27, 2018
mathiasbynens added a commit to mathiasbynens/test262 that referenced this pull request Nov 29, 2018
mathiasbynens added a commit to mathiasbynens/test262 that referenced this pull request Nov 29, 2018
@mathiasbynens
Copy link
Member Author

Test262 tests: tc39/test262#1977

mathiasbynens added a commit to mathiasbynens/test262 that referenced this pull request Nov 30, 2018
@littledan littledan added has test262 tests and removed needs test262 tests The proposal should specify how to test an implementation. Ideally via github.com/tc39/test262 labels Dec 6, 2018
@littledan
Copy link
Member

Since this has tests and consensus, is it ready to merge?

@ljharb
Copy link
Member

ljharb commented Dec 6, 2018

The tests aren’t merged yet.

leobalter pushed a commit to tc39/test262 that referenced this pull request Dec 6, 2018
@mathiasbynens
Copy link
Member Author

@ljharb They are now!

@8eecf0d2
Copy link

8eecf0d2 commented Dec 7, 2018

I know it's not my place, but lgtm!

@tschneidereit
Copy link
Member

FWIW, Mozilla would be ok with making sort stability normative for TypedArray#sort as well, even before our implementation is compliant.

@mathiasbynens
Copy link
Member Author

V8 would be too. As soon as this PR is merged, I’ll work on a follow-up PR that makes %TypedArray%#sort stable as well.

@ljharb ljharb assigned ljharb and unassigned bterlson Jan 29, 2019
@ljharb ljharb merged commit 257cae9 into tc39:master Jan 29, 2019
@mathiasbynens mathiasbynens deleted the sort-stability branch January 29, 2019 17:57
mathiasbynens added a commit to mathiasbynens/ecma262 that referenced this pull request Jan 29, 2019
Currently, only V8 [1] and SpiderMonkey [2] have unstable
`%TypedArray%.prototype.sort` implementations. Both teams have
publicly committed to making their implementations stable, to
match `Array.prototype.sort` [3].

[1] https://bugs.chromium.org/p/v8/issues/detail?id=8567
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=1290554
[3] tc39#1340 (comment)
@mathiasbynens
Copy link
Member Author

As soon as this PR is merged, I’ll work on a follow-up PR that makes %TypedArray%#sort stable as well.

OP delivers: #1433

lapo-luchini added a commit to lapo-luchini/pinry that referenced this pull request Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has consensus This has committee consensus. has test262 tests normative change Affects behavior required to correctly evaluate some ECMAScript source text web reality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants