Changeset 26715 in webkit for trunk/JavaScriptCore/kjs/function_object.cpp
- Timestamp:
- Oct 17, 2007, 2:01:27 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/function_object.cpp
r26688 r26715 81 81 return throwError(exec, TypeError); 82 82 } 83 if (thisObj->inherits(& DeclaredFunctionImp::info)) {84 DeclaredFunctionImp *fi = static_cast<DeclaredFunctionImp*>(thisObj);83 if (thisObj->inherits(&FunctionImp::info)) { 84 FunctionImp *fi = static_cast<FunctionImp*>(thisObj); 85 85 return jsString("function " + fi->functionName().ustring() + "(" + 86 86 fi->body->paramString() + ") " + fi->body->toString()); … … 209 209 FunctionBodyNode *bodyNode = progNode.get(); 210 210 211 FunctionImp* fimp = new DeclaredFunctionImp(exec, functionName, bodyNode, scopeChain);211 FunctionImp* fimp = new FunctionImp(exec, functionName, bodyNode, scopeChain); 212 212 213 213 // parse parameter list. throw syntax error on illegal identifiers
Note:
See TracChangeset
for help on using the changeset viewer.