Description[parser] fix token end position for regexp literals
Make the end position of a regexp literal the first character following the regexp. This matches the behaviour of number literals and string literals, as well as single-character tokens.
This change corrects the lazy-parsing of arrow functions with concise bodies, whose last token is a regular expression literal.
BUG=v8:4474
LOG=N
R=wingo@igalia.com, adamk@chromium.org, rossberg@chromium.org
Committed: https://crrev.com/e2be5ce542b76637efa5f984f2413d85951d5077
Cr-Commit-Position: refs/heads/master@{#31189}
Patch Set 1 #Patch Set 2 : Better fix #Patch Set 3 : Fix test #
Messages
Total messages: 15 (1 generated)
|