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/StringConstructor.cpp

    r35018 r35027  
    3737        ArgList::const_iterator end = args.end();
    3838        for (ArgList::const_iterator it = args.begin(); it != end; ++it)
    39           *p++ = static_cast<UChar>((*it)->toUInt32(exec));
     39            *p++ = static_cast<UChar>((*it)->toUInt32(exec));
    4040        s = UString(buf, args.size(), false);
    4141    } else
     
    4545}
    4646
    47 StringConstructor::StringConstructor(ExecState* exec, FunctionPrototype* funcProto, StringPrototype* stringProto)
    48   : InternalFunction(funcProto, Identifier(exec, stringProto->classInfo()->className))
     47StringConstructor::StringConstructor(ExecState* exec, FunctionPrototype* functionPrototype, StringPrototype* stringPrototype)
     48    : InternalFunction(functionPrototype, Identifier(exec, stringPrototype->classInfo()->className))
    4949{
    50   // ECMA 15.5.3.1 String.prototype
    51   putDirect(exec->propertyNames().prototype, stringProto, ReadOnly | DontEnum | DontDelete);
     50    // ECMA 15.5.3.1 String.prototype
     51    putDirect(exec->propertyNames().prototype, stringPrototype, ReadOnly | DontEnum | DontDelete);
    5252
    53   // ECMA 15.5.3.2 fromCharCode()
    54   putDirectFunction(new (exec) PrototypeFunction(exec, funcProto, 1, exec->propertyNames().fromCharCode, stringFromCharCode), DontEnum);
     53    // ECMA 15.5.3.2 fromCharCode()
     54    putDirectFunction(new (exec) PrototypeFunction(exec, functionPrototype, 1, exec->propertyNames().fromCharCode, stringFromCharCode), DontEnum);
    5555
    56   // no. of arguments for constructor
    57   putDirect(exec->propertyNames().length, jsNumber(exec, 1), ReadOnly | DontEnum | DontDelete);
     56    // no. of arguments for constructor
     57    putDirect(exec->propertyNames().length, jsNumber(exec, 1), ReadOnly | DontEnum | DontDelete);
    5858}
    5959
Note: See TracChangeset for help on using the changeset viewer.