archives

« Bugzilla Issues Index

#163 — 15.4.4.6 Array pop stores string length value


+++ 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.


corrected in editor's draft