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

Issue 2795093003: [regexp] Disallow '\' in capture names (Closed)

Created:
3 years, 8 months ago by jgruber
Modified:
3 years, 8 months ago
Reviewers:
Yang
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

[regexp] Disallow '\' in capture names IdentifierStart::Is and IdentifierContinue::Is both return true for '\'. The reason for this is lost to history. Special-case '\' in the regexp parser to handle this. BUG=v8:5437, v8:5868 Review-Url: https://codereview.chromium.org/2795093003 Cr-Commit-Position: refs/heads/master@{#44396} Committed: https://chromium.googlesource.com/v8/v8/+/d890ec3261b09aca90e50b8a814a737602b071cf

Patch Set 1 #

Patch Set 2 : Also fix ID_Continue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -0 lines) Patch
M src/regexp/regexp-parser.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M test/mjsunit/harmony/regexp-named-captures.js View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (11 generated)
jgruber
3 years, 8 months ago (2017-04-04 12:15:16 UTC) #4
Yang
On 2017/04/04 12:15:16, jgruber wrote: LGTM. I will have to figure out the reason for ...
3 years, 8 months ago (2017-04-05 06:50:59 UTC) #10
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/2795093003/20001
3 years, 8 months ago (2017-04-05 07:00:18 UTC) #12
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 07:01:57 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/v8/v8/+/d890ec3261b09aca90e50b8a814a737602b...

Powered by Google App Engine
This is Rietveld 408576698