Description[parsing] When failing due to variable redeclaration, point at the variable.
We used to point elsewhere, for instance the right-hand-side of an assignment.
Small limitation: Since variable proxies only have a start position, not an end
position, the best we can do is point at the first character. (We cannot rely
on the scanner's last token position because Declare may be called long after
the variable has been scanned.)
R=adamk@chromium.org
BUG=v8:5572
Committed: https://crrev.com/8cd5592f54f423d0188ea1b88041ecf0511e3ad1
Cr-Commit-Position: refs/heads/master@{#40613}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Address review comments. #
Messages
Total messages: 8 (3 generated)
|