Ignore:
Timestamp:
Jul 6, 2008, 7:49:29 PM (17 years ago)
Author:
[email protected]
Message:

JavaScriptCore:

2008-07-06 Sam Weinig <[email protected]>

Reviewed by Cameron Zwarich.

Second step in broad cleanup effort.

[ File list elided ]

WebCore:

2008-07-06 Sam Weinig <[email protected]>

Reviewed by Cameron Zwarich.

Add #include for kjs/protect.h.

  • xml/XMLHttpRequest.cpp: (WebCore::XMLHttpRequest::loadRequestAsynchronously):
File:
1 edited

Legend:

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

    r34876 r35027  
    4343*/
    4444
    45 RegExpObject::RegExpObject(RegExpPrototype* regexpProto, PassRefPtr<RegExp> regExp)
    46   : JSObject(regexpProto)
    47   , m_regExp(regExp)
    48   , m_lastIndex(0)
     45RegExpObject::RegExpObject(RegExpPrototype* regExpPrototype, PassRefPtr<RegExp> regExp)
     46    : JSObject(regExpPrototype)
     47    , m_regExp(regExp)
     48    , m_lastIndex(0)
    4949{
    5050}
     
    5656bool RegExpObject::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
    5757{
    58   return getStaticValueSlot<RegExpObject, JSObject>(exec, ExecState::regExpTable(exec), this, propertyName, slot);
     58    return getStaticValueSlot<RegExpObject, JSObject>(exec, ExecState::regExpTable(exec), this, propertyName, slot);
    5959}
    6060
     
    134134JSValue* RegExpObject::exec(ExecState* exec, const ArgList& args)
    135135{
    136     return match(exec, args)
    137         ? exec->lexicalGlobalObject()->regExpConstructor()->arrayOfMatches(exec)
    138         : jsNull();
     136    if (match(exec, args))
     137        return exec->lexicalGlobalObject()->regExpConstructor()->arrayOfMatches(exec);
     138    return jsNull();
    139139}
    140140
Note: See TracChangeset for help on using the changeset viewer.