DescriptionIn 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
Committed: https://crrev.com/1f61ac50338cc2ef1a54735206351f9798687248
Cr-Commit-Position: refs/heads/master@{#29715}
Patch Set 1 #Patch Set 2 : Disable invalid Mozilla test #Patch Set 3 : mark outdated test262 #Patch Set 4 : Fix name of obsolete test262 test #
Messages
Total messages: 23 (10 generated)
|