Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Issue 2447143005: [parsing] When failing due to variable redeclaration, point at the variable. (Closed)

Created:
4 years, 1 month ago by neis
Modified:
4 years, 1 month ago
Reviewers:
adamk
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -12 lines) Patch
M src/parsing/parser.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/parsing/parser.cc View 1 3 chunks +14 lines, -5 lines 0 comments Download
M src/parsing/pattern-rewriter.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M test/message/modules-import-redeclare3.out View 1 chunk +1 line, -1 line 0 comments Download
A + test/message/redeclaration1.js View 1 chunk +2 lines, -1 line 0 comments Download
A test/message/redeclaration1.out View 1 chunk +5 lines, -0 lines 0 comments Download
A + test/message/redeclaration2.js View 1 chunk +2 lines, -1 line 0 comments Download
A test/message/redeclaration2.out View 1 chunk +5 lines, -0 lines 0 comments Download
A + test/message/redeclaration3.js View 1 chunk +2 lines, -1 line 0 comments Download
A test/message/redeclaration3.out View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
neis
4 years, 1 month ago (2016-10-27 08:54:22 UTC) #1
adamk
lgtm % nits https://codereview.chromium.org/2447143005/diff/1/src/parsing/parser.cc File src/parsing/parser.cc (right): https://codereview.chromium.org/2447143005/diff/1/src/parsing/parser.cc#newcode1516 src/parsing/parser.cc:1516: var_end_pos >= 0 ? var_end_pos : ...
4 years, 1 month ago (2016-10-27 10:32:49 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2447143005/20001
4 years, 1 month ago (2016-10-27 10:36:39 UTC) #5
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-10-27 11:03:12 UTC) #6
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:15:11 UTC) #8
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/8cd5592f54f423d0188ea1b88041ecf0511e3ad1
Cr-Commit-Position: refs/heads/master@{#40613}

Powered by Google App Engine
This is Rietveld 408576698