« Bugzilla Issues Index

#163 — Array pop stores string length value

+++ This bug was initially created as a clone of Bug #162 +++



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.

corrected in editor's draft