Ignore:
Timestamp:
Jul 22, 2004, 4:30:52 PM (21 years ago)
Author:
kdecker
Message:

Reviewed by Darin

Fixed <rdar://problem/3682340> (error console does not include source urls or line numbers of event exceptions).

  • kjs/function_object.cpp: (FunctionObjectImp::construct):
  • kjs/function_object.h:
  • kjs/object.cpp: (KJS::ObjectImp::construct):
  • kjs/object.h: (KJS::Object::construct):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/function_object.cpp

    r6768 r7105  
    192192
    193193// ECMA 15.3.2 The Function Constructor
    194 Object FunctionObjectImp::construct(ExecState *exec, const List &args)
     194Object FunctionObjectImp::construct(ExecState *exec, const List &args, const UString &sourceURL, int lineNumber)
    195195{
    196196  UString p("");
     
    212212  int errLine;
    213213  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);
    215215
    216216  // notify debugger that source has been parsed
     
    286286}
    287287
     288// ECMA 15.3.2 The Function Constructor
     289Object FunctionObjectImp::construct(ExecState *exec, const List &args)
     290{
     291  return FunctionObjectImp::construct(exec, args, UString(), 0);
     292}
     293
     294
    288295bool FunctionObjectImp::implementsCall() const
    289296{
Note: See TracChangeset for help on using the changeset viewer.