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

Issue 857433004: Report SyntaxError on Token::ILLEGAL in ParseTemplateLiteral (Closed)

Created:
5 years, 11 months ago by caitp (gmail)
Modified:
5 years, 11 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Report SyntaxError on Token::ILLEGAL in ParseTemplateLiteral BUG=v8:3820, v8:3821 LOG=N R=arv@chromium.org, dslomov@chromium.org, marja@chromium.org Committed: https://crrev.com/02218adb6b310e1631f54dcc9d8643e4981e8a3c Cr-Commit-Position: refs/heads/master@{#26132}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -2 lines) Patch
M src/preparser.h View 2 chunks +14 lines, -2 lines 2 comments Download
M test/cctest/test-parsing.cc View 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
caitp (gmail)
PTAL I guess `!token` isn't good enough for Token::EOS and Token::ILLEGAL :(
5 years, 11 months ago (2015-01-19 11:16:44 UTC) #1
Dmitry Lomov (no reviews)
lgtm (happy to see no changes in parser needed!) This should be escalated and merged ...
5 years, 11 months ago (2015-01-19 11:56:02 UTC) #2
caitp (gmail)
/CC marja@
5 years, 11 months ago (2015-01-19 12:09:50 UTC) #4
marja
lgtm 2
5 years, 11 months ago (2015-01-19 12:10:43 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/857433004/1
5 years, 11 months ago (2015-01-19 12:14:47 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 11 months ago (2015-01-19 12:38:08 UTC) #8
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/02218adb6b310e1631f54dcc9d8643e4981e8a3c Cr-Commit-Position: refs/heads/master@{#26132}
5 years, 11 months ago (2015-01-19 12:38:28 UTC) #9
caitp (gmail)
On 2015/01/19 11:56:02, Dmitry Lomov (chromium) wrote: > This should be escalated and merged into ...
5 years, 11 months ago (2015-01-19 16:08:49 UTC) #10
arv (Not doing code reviews)
LGTM https://codereview.chromium.org/857433004/diff/1/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/857433004/diff/1/src/preparser.h#newcode2979 src/preparser.h:2979: } else if (next == Token::ILLEGAL) { Can ...
5 years, 11 months ago (2015-01-19 17:24:32 UTC) #11
caitp (gmail)
5 years, 11 months ago (2015-01-19 17:27:04 UTC) #12
Message was sent while issue was closed.
https://codereview.chromium.org/857433004/diff/1/src/preparser.h
File src/preparser.h (right):

https://codereview.chromium.org/857433004/diff/1/src/preparser.h#newcode2979
src/preparser.h:2979: } else if (next == Token::ILLEGAL) {
On 2015/01/19 17:24:32, arv wrote:
> Can this code duplication be prevented?

The first `else if (next == Token::ILLEGAL)` block might not be needed, since
ParseExpression should handle it. But I'm not exactly sure.

Powered by Google App Engine
This is Rietveld 408576698