Changeset 37876 in webkit for trunk/JavaScriptCore


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):
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r37868 r37876  
     12008-10-24  Eric Seidel  <[email protected]>
     2
     3        Reviewed by Darin Adler.
     4       
     5        Get rid of a bonus ASSERT when using a null string as a regexp.
     6        Specifically calling: RegularExpression::match() with String::empty()
     7        will hit this ASSERT.
     8        Chromium hits this, but I don't know of any way to make a layout test.
     9
     10        * pcre/pcre_exec.cpp:
     11        (jsRegExpExecute):
     12
    1132008-10-24  Alexey Proskuryakov  <[email protected]>
    214
  • 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.