v8/test/test262-es6
littledan 1f61ac5033 In RegExp, lastIndex is read with ToLength, not ToInteger
ES2015 made a change vs ES5, where the "lastIndex" property of a
RegExp (which can be modified by a user to start the next search at
a different location) is cast to an integer with ToLength rather
than ToInteger. The main difference is on negative numbers, and
this is tested by test262. This patch implements that change on
RegExps and enables the test262 test now that it passes.

R=adamk
LOG=Y
BUG=v8:4244

Review URL: https://codereview.chromium.org/1241713004

Cr-Commit-Position: refs/heads/master@{#29715}
2015-07-16 21:55:41 +00:00
..
harness-adapt.js test/test262: update testcfg.py for new test262 2014-08-22 13:00:10 +00:00
README [test262-es6] Update to 2015-07-06 which includes the yaml harness fix 2015-07-07 13:54:30 +00:00
test262-es6.status In RegExp, lastIndex is read with ToLength, not ToInteger 2015-07-16 21:55:41 +00:00
testcfg.py [test262-es6] Update to 2015-07-06 which includes the yaml harness fix 2015-07-07 13:54:30 +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

  https://github.com/tc39/test262

at hash c6ac390 (2015/07/06 revision) 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.

  git clone https://github.com/tc39/test262 data
  cd data
  git checkout c6ac390

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.