DescriptionMake RegExp use ToLength on lastIndex when flag is turned on
In the ES2015 spec, RegExp uses ToLength, not ToInteger, on lastIndex
to coerce it to an integer. This patch switches to ToLength when
the --harmony-tolength flag is on, and adds some tests to verify the
new behavior.
BUG=v8:4244
LOG=Y
R=adamk
Committed: https://crrev.com/5c1ef6ac823e2a57805d3eb8126f796dfe479aed
Cr-Commit-Position: refs/heads/master@{#31306}
Patch Set 1 #
Messages
Total messages: 12 (4 generated)
|