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

Issue 2695973003: ParserBase should accept ESCAPED_STRICT_RESERVED_WORD as an identifier (Closed)

Created:
3 years, 10 months ago by vabr (Chromium)
Modified:
3 years, 10 months ago
Reviewers:
adamk
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

ParserBase should accept ESCAPED_STRICT_RESERVED_WORD as an identifier ParserBase::is_any_identifier currently does not recognise Token::ESCAPED_STRICT_RESERVED_WORD as an identifier. This seems different from what ParserBase::ParseIdentifierName does, and also prevents "l\u0065t", unlike "let", from becoming a label. This CL extends is_any_identifier to also accept ESCAPED_STRICT_RESERVED_WORD. BUG=v8:5692 Review-Url: https://codereview.chromium.org/2695973003 Cr-Commit-Position: refs/heads/master@{#43204} Committed: https://chromium.googlesource.com/v8/v8/+/e3d761d94b2d899e4c13e57e5f1a75364082cd53

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add cctest, improve mjsunit #

Total comments: 2

Patch Set 3 : cctest fixed and ParseIdentifierOrStrictReservedWord recognises ESCAPED_STRICT_RESERVED_WORD #

Total comments: 4

Patch Set 4 : Address comments and add NULL to statement_data #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -1 line) Patch
M src/parsing/parser-base.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M test/cctest/test-parsing.cc View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
A test/mjsunit/regress/regress-5692.js View 1 2 3 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (17 generated)
vabr (Chromium)
Hi Adam, Could you please review? Thanks! Vaclav
3 years, 10 months ago (2017-02-14 17:57:16 UTC) #6
adamk
The change looks right to me. I'd like to see some more tests in test-parsing.cc ...
3 years, 10 months ago (2017-02-14 22:00:53 UTC) #7
vabr (Chromium)
Thanks, Adam! I did my best to address your comments, but apparently I need some ...
3 years, 10 months ago (2017-02-14 23:58:53 UTC) #10
adamk
https://codereview.chromium.org/2695973003/diff/20001/test/cctest/test-parsing.cc File test/cctest/test-parsing.cc (right): https://codereview.chromium.org/2695973003/diff/20001/test/cctest/test-parsing.cc#newcode1717 test/cctest/test-parsing.cc:1717: TEST(NoErrorsEvalAndArgumentsSloppy) { This is an example of the kind ...
3 years, 10 months ago (2017-02-15 00:29:06 UTC) #11
vabr (Chromium)
Thanks, Adam! I changed the cctest according to your suggestion. It now agrees with manual ...
3 years, 10 months ago (2017-02-15 01:17:07 UTC) #16
adamk
Please leave the "v8" out of the test filename, just "regress-5692.js" is the naming convention ...
3 years, 10 months ago (2017-02-15 01:25:38 UTC) #17
vabr (Chromium)
Thanks for the review and helpful advice! I addressed your comments, fixed a typo I ...
3 years, 10 months ago (2017-02-15 01:34:21 UTC) #20
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/2695973003/60001
3 years, 10 months ago (2017-02-15 01:34:28 UTC) #23
commit-bot: I haz the power
3 years, 10 months ago (2017-02-15 02:35:20 UTC) #26
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/v8/v8/+/e3d761d94b2d899e4c13e57e5f1a7536408...

Powered by Google App Engine
This is Rietveld 408576698