Changeset 7105 in webkit for trunk/JavaScriptCore/kjs/function_object.cpp
- Timestamp:
- Jul 22, 2004, 4:30:52 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/function_object.cpp
r6768 r7105 192 192 193 193 // ECMA 15.3.2 The Function Constructor 194 Object FunctionObjectImp::construct(ExecState *exec, const List &args )194 Object FunctionObjectImp::construct(ExecState *exec, const List &args, const UString &sourceURL, int lineNumber) 195 195 { 196 196 UString p(""); … … 212 212 int errLine; 213 213 UString errMsg; 214 ProgramNode *progNode = Parser::parse( UString(), 0, body.data(),body.size(),&sid,&errLine,&errMsg);214 ProgramNode *progNode = Parser::parse(sourceURL, lineNumber, body.data(),body.size(),&sid,&errLine,&errMsg); 215 215 216 216 // notify debugger that source has been parsed … … 286 286 } 287 287 288 // ECMA 15.3.2 The Function Constructor 289 Object FunctionObjectImp::construct(ExecState *exec, const List &args) 290 { 291 return FunctionObjectImp::construct(exec, args, UString(), 0); 292 } 293 294 288 295 bool FunctionObjectImp::implementsCall() const 289 296 {
Note:
See TracChangeset
for help on using the changeset viewer.