Changeset 21032 in webkit for trunk/JavaScriptCore/kjs/function_object.cpp
- Timestamp:
- Apr 23, 2007, 3:28:10 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/function_object.cpp
r20310 r21032 84 84 DeclaredFunctionImp *fi = static_cast<DeclaredFunctionImp*>(thisObj); 85 85 return jsString("function " + fi->functionName().ustring() + "(" + 86 fi-> parameterString() + ") " + fi->body->toString());86 fi->body->paramString() + ") " + fi->body->toString()); 87 87 } else if (thisObj->inherits(&InternalFunctionImp::info) && 88 88 !static_cast<InternalFunctionImp*>(thisObj)->functionName().isNull()) { … … 229 229 c++, i++; 230 230 if (i == len) { 231 fimp->addParameter(Identifier(param));231 bodyNode->addParam(Identifier(param)); 232 232 params++; 233 233 break; 234 234 } else if (*c == ',') { 235 fimp->addParameter(Identifier(param));235 bodyNode->addParam(Identifier(param)); 236 236 params++; 237 237 c++, i++;
Note:
See TracChangeset
for help on using the changeset viewer.