Skip to content
  • darin's avatar
    Reviewed by Ken. · 14571bb3
    darin authored
            - fixed a couple things making 5 Mozilla regexp tests pass
    
            * kjs/regexp_object.cpp: (RegExpProtoFuncImp::call): Implement toString
            for the prototype.
            (RegExpObjectImp::construct): Fix bug where the string "undefined" would
            be used as the flags string when no parameter was passed.
    
            * kjs/regexp_object.h: (KJS::RegExpPrototypeImp::classInfo):
            Added a class info object for RegExp prototype so it can return
            a string instead of raising an exception when converting to a string.
    
            * tests/mozilla/expected.html: Update results.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@7175 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    14571bb3