« Bugzilla Issues Index

#162 — Array pop stores string length value



I think there's a typo/bug in spec for Array.prototype.pop.,
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?


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.