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

Issue 2950633002: [parser] Forbid \08 in strict strings (Closed)

Created:
3 years, 6 months ago by bakkot1
Modified:
3 years, 6 months ago
Reviewers:
vogelheim
CC:
v8-reviews_googlegroups.com, marja+watch_chromium.org
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

[parser] Forbid \08 in strict strings and in untagged templates This was never legal; the spec only allows '\0' in strict-mode strings or templates when not followed by a decimal digit. Previously we were only enforcing that it not be followed by an _octal_ digit. This was already fixed for numeric literals, but not for escape sequences in strings. BUG=v8:6504 Review-Url: https://codereview.chromium.org/2950633002 Cr-Commit-Position: refs/heads/master@{#46046} Committed: https://chromium.googlesource.com/v8/v8/+/b102540e44a72157098014a20399193a461153d2

Patch Set 1 #

Patch Set 2 : Add test for legality in sloppy mode #

Patch Set 3 : Add test for octal in directive before use-strict #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -4 lines) Patch
M src/parsing/scanner.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-parsing.cc View 1 2 3 chunks +29 lines, -0 lines 0 comments Download
M test/mjsunit/es6/templates.js View 2 chunks +1 line, -3 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
bakkot1
PTAL. See bug for spec; short version: spec allows `\0` in strict-mode strings and template ...
3 years, 6 months ago (2017-06-19 21:14:19 UTC) #4
vogelheim
lgtm. Thanks for the tests!
3 years, 6 months ago (2017-06-20 08:50:33 UTC) #6
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/2950633002/40001
3 years, 6 months ago (2017-06-20 12:55:47 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/v8/v8/+/b102540e44a72157098014a20399193a461153d2
3 years, 6 months ago (2017-06-20 13:28:27 UTC) #11
Michael Achenbach
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/2946953002/ by machenbach@chromium.org. ...
3 years, 6 months ago (2017-06-20 18:23:43 UTC) #12
Michael Achenbach
3 years, 6 months ago (2017-06-20 18:25:02 UTC) #13
Message was sent while issue was closed.
"Breaks" seems to be "fixes" in this case. The CL still needs to go through the
layout-test rebase dance.

Powered by Google App Engine
This is Rietveld 408576698