Reviewers: danno, Message: PTAL.
Description: Fix setting array length to be ES5 conform. This also refactors the way we set the length of an arrays' backing store to use the new elements accessor interface. The actual fix is in DictionaryElementsAccessor::SetLengthWithoutNormalize() where we first search for non-deletable elements according to ES5 section 15.4.5.2 specifications. Snippet from the specification: Attempting to set the length property of an Array object to a value that is numerically less than or equal to the largest numeric property name of an existing array indexed non-deletable property of the array will result in the length being set to a numeric value that is one greater than that largest numeric property name. [email protected] TEST=test262/15.4.4.??-7-b-16 Please review this at http://codereview.chromium.org/8372064/ SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge Affected files: M src/elements.h M src/elements.cc M src/objects.h M src/objects.cc M test/test262/test262.status -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
