« Bugzilla Issues Index
#4232 — 22.1.3.24 Array.prototype.sort: Term "different behaviour" is unclear
- bug_id:
4232
- creation_ts:
2015-03-27 07:45:00 -0700
- short_desc:
22.1.3.24 Array.prototype.sort: Term "different behaviour" is unclear
- delta_ts:
2015-04-03 12:35:41 -0700
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 36: March 17, 2015 Release Candidate 3
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
normal
- everconfirmed:
true
- reporter:
André Bargull
- assigned_to:
Allen Wirfs-Brock
- commentid:
13949
- comment_count:
0
- who:
André Bargull
- bug_when:
2015-03-27 07:45:15 -0700
22.1.3.24 Array.prototype.sort (comparefn)
> If obj is an exotic object (including Proxy exotic objects) whose behaviour for [[Get]], [[Set]], [[Delete]],
> and [[GetOwnProperty]] is different from the ordinary object behaviour for these internal methods.
It's not clear to me what "different behaviour" means in this context. For example does a Proxy object which only adds logging, like:
p = new Proxy({}, {
get(t, pk, r) { print("get trap"); return Reflect.get(t, pk, r); }
});
count as "different behaviour"?
- commentid:
13998
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2015-04-01 11:58:13 -0700
fixed in rev37 editor's draft
changed "is different from" to "is not"
It really mans what it says. Sorting of any proxy falls into the implementation dependent bucket.
- commentid:
14110
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2015-04-03 12:35:41 -0700
In Rev37