1f61ac5033
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} |
||
---|---|---|
.. | ||
harness-adapt.js | ||
README | ||
test262-es6.status | ||
testcfg.py |
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.