Changeset 12911 in webkit for trunk/JavaScriptCore/kjs/string_object.cpp
- Timestamp:
- Feb 20, 2006, 11:54:55 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/string_object.cpp
r12728 r12911 168 168 // ------------------------------ StringProtoFunc --------------------------- 169 169 170 StringProtoFunc::StringProtoFunc(ExecState *exec, int i, int len) 171 : InternalFunctionImp( 172 static_cast<FunctionPrototype*>(exec->lexicalInterpreter()->builtinFunctionPrototype()) 173 ), id(i) 170 StringProtoFunc::StringProtoFunc(ExecState *exec, int i, int len, const Identifier& name) 171 : InternalFunctionImp(static_cast<FunctionPrototype*>(exec->lexicalInterpreter()->builtinFunctionPrototype()), name) 172 , id(i) 174 173 { 175 174 putDirect(lengthPropertyName, len, DontDelete|ReadOnly|DontEnum); … … 700 699 putDirect(prototypePropertyName, stringProto, DontEnum|DontDelete|ReadOnly); 701 700 702 putDirect (fromCharCodePropertyName, new StringObjectFuncImp(exec, funcProto), DontEnum);701 putDirectFunction(new StringObjectFuncImp(exec, funcProto, fromCharCodePropertyName), DontEnum); 703 702 704 703 // no. of arguments for constructor … … 740 739 741 740 // ECMA 15.5.3.2 fromCharCode() 742 StringObjectFuncImp::StringObjectFuncImp(ExecState *exec, FunctionPrototype *funcProto)743 : InternalFunctionImp(funcProto )741 StringObjectFuncImp::StringObjectFuncImp(ExecState*, FunctionPrototype* funcProto, const Identifier& name) 742 : InternalFunctionImp(funcProto, name) 744 743 { 745 744 putDirect(lengthPropertyName, jsNumber(1), DontDelete|ReadOnly|DontEnum);
Note:
See TracChangeset
for help on using the changeset viewer.