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

Issue 2724003006: [parser] Correctly handle invalid escapes in adjacent template tokens. (Closed)

Created:
3 years, 9 months ago by bakkot1
Modified:
3 years, 9 months ago
Reviewers:
vogelheim
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[parser] Correctly handle invalid escapes in adjacent template tokens. A previous patch lifting the restriction on invalid escape sequences in tagged templates had a bug when two template tokens appeared immediately adject to each other. This moves invalid escape information from the tokenizer state proper into the TokenDesc, preventing the overwriting which caused this issue. Previous CL is at https://codereview.chromium.org/2665513002 BUG=v8:6029, v8:5546 Review-Url: https://codereview.chromium.org/2724003006 Cr-Commit-Position: refs/heads/master@{#43596} Committed: https://chromium.googlesource.com/v8/v8/+/baa74e89b6927917f911aab0e0823c8e0234aaa2

Patch Set 1 #

Total comments: 5

Patch Set 2 : drop underscore #

Patch Set 3 : MoveErrorTo takes a TokenDesc* #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -32 lines) Patch
M src/parsing/parser-base.h View 2 chunks +5 lines, -4 lines 0 comments Download
M src/parsing/scanner.h View 1 2 5 chunks +14 lines, -12 lines 0 comments Download
M src/parsing/scanner.cc View 1 2 9 chunks +18 lines, -16 lines 0 comments Download
M test/cctest/test-parsing.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M test/mjsunit/harmony/template-escapes.js View 1 chunk +87 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
bakkot1
PTAL. (Fixes a bug introduced by previous patch.) I forgot that the lookahead token could ...
3 years, 9 months ago (2017-03-02 22:13:04 UTC) #3
vogelheim
lgtm Thanks for DCHECKs + test cases! https://codereview.chromium.org/2724003006/diff/1/src/parsing/scanner.cc File src/parsing/scanner.cc (right): https://codereview.chromium.org/2724003006/diff/1/src/parsing/scanner.cc#newcode1126 src/parsing/scanner.cc:1126: scanner_error_state.MoveErrorTo( nitpick: ...
3 years, 9 months ago (2017-03-03 10:40:08 UTC) #4
bakkot1
https://codereview.chromium.org/2724003006/diff/1/src/parsing/scanner.cc File src/parsing/scanner.cc (right): https://codereview.chromium.org/2724003006/diff/1/src/parsing/scanner.cc#newcode1126 src/parsing/scanner.cc:1126: scanner_error_state.MoveErrorTo( On 2017/03/03 10:40:08, vogelheim wrote: > nitpick: With ...
3 years, 9 months ago (2017-03-03 20:50:17 UTC) #9
vogelheim
lgtm https://codereview.chromium.org/2724003006/diff/1/src/parsing/scanner.cc File src/parsing/scanner.cc (right): https://codereview.chromium.org/2724003006/diff/1/src/parsing/scanner.cc#newcode1126 src/parsing/scanner.cc:1126: scanner_error_state.MoveErrorTo( On 2017/03/03 20:50:17, bakkot1 wrote: > On ...
3 years, 9 months ago (2017-03-03 21:26:19 UTC) #10
bakkot1
On 2017/03/03 21:26:19, vogelheim wrote: > lgtm > > https://codereview.chromium.org/2724003006/diff/1/src/parsing/scanner.cc > File src/parsing/scanner.cc (right): > ...
3 years, 9 months ago (2017-03-03 21:43:56 UTC) #11
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/2724003006/40001
3 years, 9 months ago (2017-03-03 21:44:08 UTC) #14
commit-bot: I haz the power
3 years, 9 months ago (2017-03-03 22:09:04 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/v8/v8/+/baa74e89b6927917f911aab0e0823c8e023...

Powered by Google App Engine
This is Rietveld 408576698