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

Issue 778813003: ES6 template literals: Fix issue with template after rbrace (Closed)

Created:
6 years ago by arv (Not doing code reviews)
Modified:
6 years ago
CC:
caitp (gmail), v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Project:
v8
Visibility:
Public.

Description

ES6 template literals: Fix issue with template after rbrace If we hade }` the right brace was always treated as part of the template literal. We should only treat the right brace as part of the literal when we continue to parse the template literal after a placeholder. BUG=v8:3734 LOG=Y

Patch Set 1 : Fix test #

Patch Set 2 : Self review #

Patch Set 3 : Remove need for PushBack #

Total comments: 1

Patch Set 4 : Add tests without newlines #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -14 lines) Patch
M src/preparser.h View 1 chunk +1 line, -1 line 0 comments Download
M src/scanner.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M src/scanner.cc View 1 2 3 chunks +16 lines, -12 lines 0 comments Download
M test/mjsunit/harmony/templates.js View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
arv (Not doing code reviews)
Fix test
6 years ago (2014-12-03 22:58:11 UTC) #1
arv (Not doing code reviews)
Self review
6 years ago (2014-12-03 23:00:30 UTC) #3
arv (Not doing code reviews)
Remove need for PushBack
6 years ago (2014-12-03 23:13:25 UTC) #4
arv (Not doing code reviews)
PTAL
6 years ago (2014-12-03 23:16:59 UTC) #6
caitp (gmail)
lgtm, thanks for finding this! https://codereview.chromium.org/778813003/diff/60001/test/mjsunit/harmony/templates.js File test/mjsunit/harmony/templates.js (right): https://codereview.chromium.org/778813003/diff/60001/test/mjsunit/harmony/templates.js#newcode461 test/mjsunit/harmony/templates.js:461: `abc`; So "function f() ...
6 years ago (2014-12-03 23:20:25 UTC) #8
arv (Not doing code reviews)
On 2014/12/03 23:20:25, caitp wrote: > lgtm, thanks for finding this! > > https://codereview.chromium.org/778813003/diff/60001/test/mjsunit/harmony/templates.js > ...
6 years ago (2014-12-03 23:25:29 UTC) #9
arv (Not doing code reviews)
Add tests without newlines
6 years ago (2014-12-03 23:28:24 UTC) #10
arv (Not doing code reviews)
Dmitry, since you landed the staging CL, this bug might be triggered by the fuzzer ...
6 years ago (2014-12-04 13:49:47 UTC) #12
Dmitry Lomov (no reviews)
lgtm
6 years ago (2014-12-04 14:23:48 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/778813003/80001
6 years ago (2014-12-04 14:24:46 UTC) #15
commit-bot: I haz the power
6 years ago (2014-12-04 14:50:15 UTC) #16
Message was sent while issue was closed.
Committed patchset #4 (id:80001)

Powered by Google App Engine
This is Rietveld 408576698