Reviewers: Erik Corry, antonm,

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/

Please review this at http://codereview.chromium.org/5464001/

Affected files:
  M src/parser.cc
  M test/cctest/test-regexp.cc
  M test/mjsunit/regexp.js
  M test/mjsunit/third_party/regexp-pcre.js
  M test/mozilla/mozilla.status


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to