v8/test/test262
mstarzinger@chromium.org e24c612a5e 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.

R=danno@chromium.org
TEST=test262/15.4.4.??-7-b-16

Review URL: http://codereview.chromium.org/8372064

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9911 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2011-11-08 11:59:56 +00:00
..
harness-adapt.js Updated status file for test262 to latest revision. 2011-07-09 07:29:32 +00:00
README Update test harness and status file for Test262. 2011-10-07 07:30:45 +00:00
test262.status Fix setting array length to be ES5 conform. 2011-11-08 11:59:56 +00:00
testcfg.py Update test harness and status file for Test262. 2011-10-07 07:30:45 +00:00

This directory contains code for binding the test262 test suite
into the v8 test harness. To use the tests check out the test262
tests from

  http://hg.ecmascript.org/tests/test262

at revision 271 as 'data' in this directory.  Using later version
may be possible but the tests are only known to pass (and indeed run)
with that revision.

hg clone -r 271 http://hg.ecmascript.org/tests/test262 data

If you do update to a newer revision you may have to change the test
harness adapter code since it uses internal functionality from the
harness that comes bundled with the tests.  You will most likely also
have to update the test expectation file.