« Bugzilla Issues Index
#163 — 15.4.4.6 Array pop stores string length value
- bug_id:
163
- creation_ts:
2011-07-21 09:42:00 -0700
- short_desc:
15.4.4.6 Array pop stores string length value
- delta_ts:
2011-07-21 09:49:22 -0700
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Initial draft July 12, 2011
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
normal
- dependson:
162
- everconfirmed:
true
- reporter:
Allen Wirfs-Brock
- assigned_to:
Allen Wirfs-Brock
- commentid:
362
- comment_count:
0
- who:
Allen Wirfs-Brock
- bug_when:
2011-07-21 09:42:33 -0700
+++ This bug was initially created as a clone of Bug #162 +++
from: https://mail.mozilla.org/pipermail/es5-discuss/2011-July/004062.html
Hi,
I think there's a typo/bug in spec for Array.prototype.pop. 15.4.4.6,
step 5d says:
"Call the [[Put]] internal method of O with arguments "length", indx, and true"
But indx is the result of a call to ToString (step 5a). Now the
length property's value is a string, when it should be a number.
Is that right?
Thanks,
Matt Carroll
_________________________
This but was introduced in the E5 Spec.
It needs to go into the ES5.1 errata.
- commentid:
363
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2011-07-21 09:49:22 -0700
corrected in editor's draft