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

Issue 811113002: ES6 template literals should not use legacy octal strings (Closed)

Created:
6 years ago by arv (Not doing code reviews)
Modified:
6 years 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

ES6 template literals should not use legacy octal strings Correctly handle SyntaxErrors in escape sequences. BUG=v8:3736 LOG=Y R=dslomov@chromium.org, caitpotter88@gmail.com Committed: https://crrev.com/c05a4036b04f331196b2f84b7cbd03dee4e63058 Cr-Commit-Position: refs/heads/master@{#25891}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Fix backslash 0 #

Total comments: 1

Patch Set 3 : Fix some more syntax errors #

Total comments: 7

Patch Set 4 : add back test for backslash x but use z instead #

Patch Set 5 : moar #

Total comments: 6

Patch Set 6 : One more test #

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

Messages

Total messages: 22 (1 generated)
arv (Not doing code reviews)
PTAL
6 years ago (2014-12-17 16:51:17 UTC) #1
caitp (gmail)
https://codereview.chromium.org/811113002/diff/1/src/scanner.cc File src/scanner.cc (right): https://codereview.chromium.org/811113002/diff/1/src/scanner.cc#newcode706 src/scanner.cc:706: if (!in_template_literal && c0_ >= 0 && unicode_cache_->IsLineTerminator(c)) { ...
6 years ago (2014-12-17 17:04:21 UTC) #2
caitp (gmail)
https://codereview.chromium.org/811113002/diff/1/test/mjsunit/harmony/templates.js File test/mjsunit/harmony/templates.js (right): https://codereview.chromium.org/811113002/diff/1/test/mjsunit/harmony/templates.js#newcode477 test/mjsunit/harmony/templates.js:477: assertEquals('0', `\0`); On 2014/12/17 17:04:21, caitp wrote: > > ...
6 years ago (2014-12-17 17:06:03 UTC) #3
arv (Not doing code reviews)
PTAL https://codereview.chromium.org/811113002/diff/1/src/scanner.cc File src/scanner.cc (right): https://codereview.chromium.org/811113002/diff/1/src/scanner.cc#newcode706 src/scanner.cc:706: if (!in_template_literal && c0_ >= 0 && unicode_cache_->IsLineTerminator(c)) ...
6 years ago (2014-12-17 17:56:20 UTC) #4
arv (Not doing code reviews)
Fix backslash 0
6 years ago (2014-12-17 17:58:21 UTC) #5
caitp (gmail)
https://codereview.chromium.org/811113002/diff/20001/test/mjsunit/harmony/templates.js File test/mjsunit/harmony/templates.js (right): https://codereview.chromium.org/811113002/diff/20001/test/mjsunit/harmony/templates.js#newcode479 test/mjsunit/harmony/templates.js:479: assertEquals('\u000012', `\012`); Few other things: "\0a" matches the grammar ...
6 years ago (2014-12-17 18:04:59 UTC) #6
arv (Not doing code reviews)
On 2014/12/17 18:04:59, caitp wrote: > https://codereview.chromium.org/811113002/diff/20001/test/mjsunit/harmony/templates.js > File test/mjsunit/harmony/templates.js (right): > > https://codereview.chromium.org/811113002/diff/20001/test/mjsunit/harmony/templates.js#newcode479 > ...
6 years ago (2014-12-17 18:12:58 UTC) #7
caitp (gmail)
On 2014/12/17 18:12:58, arv wrote: > On 2014/12/17 18:04:59, caitp wrote: > > > https://codereview.chromium.org/811113002/diff/20001/test/mjsunit/harmony/templates.js ...
6 years ago (2014-12-17 18:26:17 UTC) #8
arv (Not doing code reviews)
Fix some more syntax errors
6 years ago (2014-12-17 19:23:31 UTC) #9
caitp (gmail)
Lgtm, few things though https://codereview.chromium.org/811113002/diff/40001/src/scanner.cc File src/scanner.cc (right): https://codereview.chromium.org/811113002/diff/40001/src/scanner.cc#newcode739 src/scanner.cc:739: return false; I feel like ...
6 years ago (2014-12-17 19:35:56 UTC) #10
arv (Not doing code reviews)
add back test for backslash x but use z instead
6 years ago (2014-12-17 19:37:51 UTC) #11
arv (Not doing code reviews)
moar
6 years ago (2014-12-17 20:20:06 UTC) #12
arv (Not doing code reviews)
PTAL https://codereview.chromium.org/811113002/diff/40001/test/mjsunit/harmony/templates.js File test/mjsunit/harmony/templates.js (left): https://codereview.chromium.org/811113002/diff/40001/test/mjsunit/harmony/templates.js#oldcode256 test/mjsunit/harmony/templates.js:256: (function(s) { calls++; assertEquals("\u005Cx", s.raw[0]); })`\x`; On 2014/12/17 ...
6 years ago (2014-12-17 20:22:07 UTC) #13
caitp (gmail)
Still basically looks okay https://codereview.chromium.org/811113002/diff/80001/src/scanner.cc File src/scanner.cc (right): https://codereview.chromium.org/811113002/diff/80001/src/scanner.cc#newcode730 src/scanner.cc:730: break; Was this added changed ...
6 years ago (2014-12-17 20:32:14 UTC) #14
arv (Not doing code reviews)
One more test
6 years ago (2014-12-17 20:56:41 UTC) #15
arv (Not doing code reviews)
https://codereview.chromium.org/811113002/diff/80001/src/scanner.cc File src/scanner.cc (right): https://codereview.chromium.org/811113002/diff/80001/src/scanner.cc#newcode730 src/scanner.cc:730: break; On 2014/12/17 20:32:14, caitp wrote: > Was this ...
6 years ago (2014-12-17 20:57:13 UTC) #16
arv (Not doing code reviews)
Dmitry, PTAL.
6 years ago (2014-12-18 17:42:46 UTC) #17
Dmitry Lomov (no reviews)
lgtm
6 years ago (2014-12-18 19:10:45 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/811113002/100001
6 years ago (2014-12-18 19:15:41 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:100001)
6 years ago (2014-12-18 19:41:44 UTC) #21
commit-bot: I haz the power
6 years ago (2014-12-18 19:42:09 UTC) #22
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/c05a4036b04f331196b2f84b7cbd03dee4e63058
Cr-Commit-Position: refs/heads/master@{#25891}

Powered by Google App Engine
This is Rietveld 408576698