• littledan's avatar
    In RegExp, lastIndex is read with ToLength, not ToInteger · 1f61ac50
    littledan authored
    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}
    1f61ac50
Name
Last commit
Last update
benchmarks Loading commit data...
build Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party/binutils Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
Makefile.nacl Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...