Ignore:
Timestamp:
Aug 2, 2004, 4:47:18 PM (21 years ago)
Author:
darin
Message:

Reviewed by Ken.

  • fixed RegExp.toString so 3 more Mozilla regexp tests pass
  • kjs/regexp_object.cpp: (RegExpProtoFuncImp::call): Append the flags here so more tests paseed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/regexp_object.cpp

    r7175 r7178  
    136136    str += s.value();
    137137    str += "/";
    138     // TODO append the flags
     138    if (thisObj.get(exec,"global").toBoolean(exec)) {
     139      str += "g";
     140    }
     141    if (thisObj.get(exec,"ignoreCase").toBoolean(exec)) {
     142      str += "i";
     143    }
     144    if (thisObj.get(exec,"multiline").toBoolean(exec)) {
     145      str += "m";
     146    }
    139147    return String(str);
    140148  }
Note: See TracChangeset for help on using the changeset viewer.