Changeset 37876 in webkit for trunk/JavaScriptCore/pcre


Ignore:
Timestamp:
Oct 24, 2008, 5:09:56 PM (17 years ago)
Author:
[email protected]
Message:

Reviewed by Darin Adler.

Get rid of a bonus ASSERT when using a null string as a regexp.
Specifically calling: RegularExpression::match() with String::empty()
will hit this ASSERT.
Chromium hits this, but I don't know of any way to make a layout test.

  • pcre/pcre_exec.cpp: (jsRegExpExecute):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/pcre/pcre_exec.cpp

    r36263 r37876  
    19561956{
    19571957    ASSERT(re);
    1958     ASSERT(subject);
     1958    ASSERT(subject || !length);
    19591959    ASSERT(offsetCount >= 0);
    19601960    ASSERT(offsets || offsetCount == 0);
Note: See TracChangeset for help on using the changeset viewer.