archives

« Bugzilla Issues Index

#3143 — 22.1.3.24 Array.prototype.sort: Description of argument types for SortCompare


+++ This bug was initially created as a clone of Bug #3141 +++

22.1.3.24 Array.prototype.sort (comparefn)

In the "Otherwise, the following steps are taken" part:

> [...] where the arguments for calls to SortCompare are results of
> previous calls to the [[Get]] internal method.

But SortCompare takes property keys as arguments, not results from previous [[Get]] operations.

There are some recent proposals to change SortCompare to use values instead of property keys [1, 2], so basically reverting the changes from the 3rd edition. If SortCompare gets reverted to use values, this bug report can be closed for the 6th edition resp. converted to 5th edition for a future errata. IOW the mismatched description is an issue since the 3rd edition.


[1] bug 3089
[2] https://mail.mozilla.org/pipermail/es-discuss/2014-August/038847.html


This has been corrected in the 6th edition.

Marked as "In Progress" to flag as ES5.1 errata material.


Bulk resolving ES5.1 errata issues as a sampling suggests these are all fixed. If this is in error, please open a new issue on GitHub.