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

Issue 1793913002: [parser] implement error reporting for Scanner errors (Closed)

Created:
4 years, 9 months ago by caitp (gmail)
Modified:
4 years, 9 months ago
Reviewers:
Dan Ehrenberg, adamk
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[parser] implement error reporting for Scanner Enables the Scanner to provide a better error message when errors occur in escape sequences, numbers, strings, etc. BUG=v8:4829, v8:3230 LOG=N R=adamk@chromium.org, littledan@chromium.org Committed: https://crrev.com/e6f4b7491c434773f0a59a36ce98db40ea31bce2 Cr-Commit-Position: refs/heads/master@{#34966}

Patch Set 1 #

Patch Set 2 : move new messages under "SyntaxError" #

Patch Set 3 : unicode escape sequence fine-tuning #

Patch Set 4 : add tests #

Patch Set 5 : fix typo #

Patch Set 6 : rebased #

Total comments: 17

Patch Set 7 : comments #

Patch Set 8 : rebase #

Patch Set 9 : slightly more fixed #

Patch Set 10 : rewrite "unclosed unicode escape sequence" message #

Patch Set 11 : Remove "unclosed unicode escape sequence" message #

Total comments: 4

Patch Set 12 : shape changing lines of code into new lines of code #

Total comments: 4

Patch Set 13 : shape change a few more lines #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -60 lines) Patch
M src/messages.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M src/parsing/parser-base.h View 1 2 3 4 5 6 7 5 chunks +23 lines, -16 lines 0 comments Download
M src/parsing/scanner.h View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +24 lines, -2 lines 0 comments Download
M src/parsing/scanner.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +25 lines, -16 lines 0 comments Download
M test/message/regress/regress-4829-1.out View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M test/message/regress/regress-4829-2.out View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + test/message/unicode-escape-invalid.js View 1 2 3 4 5 1 chunk +1 line, -3 lines 0 comments Download
A + test/message/unicode-escape-invalid.out View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -4 lines 0 comments Download
A + test/message/unicode-escape-invalid-2.js View 1 2 3 4 5 1 chunk +1 line, -3 lines 0 comments Download
A + test/message/unicode-escape-invalid-2.out View 1 2 3 4 5 7 1 chunk +4 lines, -4 lines 0 comments Download
A + test/message/unicode-escape-undefined.js View 1 2 3 4 5 6 1 chunk +1 line, -3 lines 0 comments Download
A + test/message/unicode-escape-undefined.out View 1 2 3 4 5 6 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 24 (5 generated)
caitp (gmail)
here's a quick frontend fix --- i'll add some tests on monday.
4 years, 9 months ago (2016-03-12 23:02:04 UTC) #1
caitp (gmail)
On 2016/03/12 23:02:04, caitp wrote: > here's a quick frontend fix --- i'll add some ...
4 years, 9 months ago (2016-03-14 20:24:05 UTC) #2
caitp (gmail)
so, do people like the clearer error messages, or should the fix be limited to ...
4 years, 9 months ago (2016-03-15 21:06:00 UTC) #3
adamk
On 2016/03/15 21:06:00, caitp wrote: > so, do people like the clearer error messages, or ...
4 years, 9 months ago (2016-03-16 17:45:31 UTC) #4
caitp (gmail)
On 2016/03/16 17:45:31, adamk wrote: > On 2016/03/15 21:06:00, caitp wrote: > > so, do ...
4 years, 9 months ago (2016-03-16 18:33:10 UTC) #5
caitp (gmail)
Alright, rebased on top of the split off patch now
4 years, 9 months ago (2016-03-16 20:29:28 UTC) #8
adamk
Finally got this back to the top of my inbox. https://codereview.chromium.org/1793913002/diff/100001/src/messages.h File src/messages.h (right): https://codereview.chromium.org/1793913002/diff/100001/src/messages.h#newcode469 ...
4 years, 9 months ago (2016-03-18 18:21:55 UTC) #9
caitp (gmail)
i probably wont have these fixed until monday, but sgtm https://codereview.chromium.org/1793913002/diff/100001/src/parsing/scanner.cc File src/parsing/scanner.cc (left): https://codereview.chromium.org/1793913002/diff/100001/src/parsing/scanner.cc#oldcode87 ...
4 years, 9 months ago (2016-03-18 19:00:36 UTC) #10
adamk
https://codereview.chromium.org/1793913002/diff/100001/src/parsing/scanner.cc File src/parsing/scanner.cc (left): https://codereview.chromium.org/1793913002/diff/100001/src/parsing/scanner.cc#oldcode87 src/parsing/scanner.cc:87: return -1; On 2016/03/18 19:00:36, caitp wrote: > On ...
4 years, 9 months ago (2016-03-18 19:09:57 UTC) #11
caitp (gmail)
okay @_@ https://codereview.chromium.org/1793913002/diff/100001/src/messages.h File src/messages.h (right): https://codereview.chromium.org/1793913002/diff/100001/src/messages.h#newcode469 src/messages.h:469: "Unclosed Unicode escape sequence --- Expected `}`") ...
4 years, 9 months ago (2016-03-21 16:15:03 UTC) #12
caitp (gmail)
okay @_@
4 years, 9 months ago (2016-03-21 16:15:05 UTC) #13
adamk
https://codereview.chromium.org/1793913002/diff/200001/src/parsing/scanner.cc File src/parsing/scanner.cc (right): https://codereview.chromium.org/1793913002/diff/200001/src/parsing/scanner.cc#newcode95 src/parsing/scanner.cc:95: return -1; Seems like this is the right place ...
4 years, 9 months ago (2016-03-21 19:13:56 UTC) #14
caitp (gmail)
https://codereview.chromium.org/1793913002/diff/200001/src/parsing/scanner.cc File src/parsing/scanner.cc (right): https://codereview.chromium.org/1793913002/diff/200001/src/parsing/scanner.cc#newcode95 src/parsing/scanner.cc:95: return -1; On 2016/03/21 19:13:56, adamk wrote: > Seems ...
4 years, 9 months ago (2016-03-21 19:40:05 UTC) #15
adamk
https://codereview.chromium.org/1793913002/diff/220001/src/parsing/scanner.cc File src/parsing/scanner.cc (left): https://codereview.chromium.org/1793913002/diff/220001/src/parsing/scanner.cc#oldcode88 src/parsing/scanner.cc:88: if (d < 0) { I think you still ...
4 years, 9 months ago (2016-03-21 19:44:31 UTC) #16
caitp (gmail)
https://codereview.chromium.org/1793913002/diff/220001/src/parsing/scanner.cc File src/parsing/scanner.cc (left): https://codereview.chromium.org/1793913002/diff/220001/src/parsing/scanner.cc#oldcode88 src/parsing/scanner.cc:88: if (d < 0) { On 2016/03/21 19:44:31, adamk ...
4 years, 9 months ago (2016-03-21 19:51:23 UTC) #17
adamk
lgtm
4 years, 9 months ago (2016-03-21 19:54:55 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1793913002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1793913002/240001
4 years, 9 months ago (2016-03-21 20:01:50 UTC) #20
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 9 months ago (2016-03-21 20:27:08 UTC) #22
commit-bot: I haz the power
4 years, 9 months ago (2016-03-21 20:27:55 UTC) #24
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/e6f4b7491c434773f0a59a36ce98db40ea31bce2
Cr-Commit-Position: refs/heads/master@{#34966}

Powered by Google App Engine
This is Rietveld 408576698