« Bugzilla Issues Index
#3141 — 22.1.3.24 Array.prototype.sort: Description of argument types for SortCompare
- bug_id:
3141
- creation_ts:
2014-08-19 04:38:00 -0700
- short_desc:
22.1.3.24 Array.prototype.sort: Description of argument types for SortCompare
- delta_ts:
2014-08-25 08:29:31 -0700
- product:
Draft for 6th Edition
- component:
editorial issue
- version:
Rev 26: July 18, 2014 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- see_also:
https://bugs.ecmascript.org/show_bug.cgi?id=3143
- priority:
Normal
- bug_severity:
normal
- blocked:
3143
- everconfirmed:
true
- reporter:
André Bargull
- assigned_to:
Allen Wirfs-Brock
- commentid:
9806
- comment_count:
0
- who:
André Bargull
- bug_when:
2014-08-19 04:38:00 -0700
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
- commentid:
9810
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2014-08-20 10:39:42 -0700
fixed in rev27 editor's draft
Cloned Bug 3143 for ES5.1 issue
- commentid:
9968
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2014-08-25 08:29:31 -0700
fixed in rev27 draft