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

Issue 5464001: Change RegExp syntax to fail on invalid ranges like [\d-x], [x-\d] and [\d-\d]. (Closed)

Created:
10 years ago by Lasse Reichstein
Modified:
9 years, 6 months ago
Reviewers:
Erik Corry, antonm
CC:
v8-dev
Visibility:
Public.

Description

Change RegExp syntax to fail on invalid ranges like [\d-x], [x-\d] and [\d-\d]. The previous behavior was to treat the "-" as verbatim if the range was invalid. This change matches the JSC changeset http://trac.webkit.org/changeset/72813/

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -56 lines) Patch
M src/parser.cc View 3 chunks +18 lines, -4 lines 0 comments Download
M test/cctest/test-regexp.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M test/mjsunit/regexp.js View 2 chunks +44 lines, -38 lines 0 comments Download
M test/mjsunit/third_party/regexp-pcre.js View 5 chunks +13 lines, -11 lines 0 comments Download
M test/mozilla/mozilla.status View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Lasse Reichstein
10 years ago (2010-12-01 14:09:39 UTC) #1
antonm
10 years ago (2010-12-01 21:31:35 UTC) #2
lgtm and tnx

Powered by Google App Engine
This is Rietveld 408576698