archives

« Bugzilla Issues Index

#162 — 15.4.4.6 Array pop stores string length value


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.


set IN_PROGRESS to indicated this should go into ES5.1 Errata.


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.