Ignore:
Timestamp:
Oct 31, 2007, 1:29:19 AM (18 years ago)
Author:
ap
Message:

Reviewed by Darin.

http://bugs.webkit.org/show_bug.cgi?id=11001
WebKit doesn't support RegExp.compile method

Test: fast/js/regexp-compile.html

  • kjs/regexp_object.cpp: (RegExpPrototype::RegExpPrototype): (RegExpProtoFunc::callAsFunction):
  • kjs/regexp_object.h: (KJS::RegExpProtoFunc::): Added RegExp.compile.
  • tests/mozilla/expected.html: js1_2/regexp/compile.js now passes.
File:
1 edited

Legend:

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

    r21034 r27303  
    4343    virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
    4444
    45     enum { Exec, Test, ToString };
     45    enum { Compile, Exec, Test, ToString };
    4646  private:
    4747    int id;
Note: See TracChangeset for help on using the changeset viewer.