[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677

kdecker kdecker at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 08:52:18 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit 76d709cb31bc8bf4030e33e7a0c112403dad58da
Author: kdecker <kdecker at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Thu Jul 22 23:30:52 2004 +0000

            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):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@7105 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/JavaScriptCore/ChangeLog b/JavaScriptCore/ChangeLog
index 86776f5..6d9c583 100644
--- a/JavaScriptCore/ChangeLog
+++ b/JavaScriptCore/ChangeLog
@@ -1,3 +1,17 @@
+2004-07-22  Kevin Decker  <kdecker at apple.com>
+
+        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):
+
 2004-07-21  Darin Adler  <darin at apple.com>
 
         * bindings/npruntime.h: Fixed typo.
diff --git a/JavaScriptCore/kjs/function_object.cpp b/JavaScriptCore/kjs/function_object.cpp
index ecbbd47..ea32f9d 100644
--- a/JavaScriptCore/kjs/function_object.cpp
+++ b/JavaScriptCore/kjs/function_object.cpp
@@ -191,7 +191,7 @@ bool FunctionObjectImp::implementsConstruct() const
 }
 
 // ECMA 15.3.2 The Function Constructor
-Object FunctionObjectImp::construct(ExecState *exec, const List &args)
+Object FunctionObjectImp::construct(ExecState *exec, const List &args, const UString &sourceURL, int lineNumber)
 {
   UString p("");
   UString body;
@@ -211,7 +211,7 @@ Object FunctionObjectImp::construct(ExecState *exec, const List &args)
   int sid;
   int errLine;
   UString errMsg;
-  ProgramNode *progNode = Parser::parse(UString(), 0, body.data(),body.size(),&sid,&errLine,&errMsg);
+  ProgramNode *progNode = Parser::parse(sourceURL, lineNumber, body.data(),body.size(),&sid,&errLine,&errMsg);
 
   // notify debugger that source has been parsed
   Debugger *dbg = exec->dynamicInterpreter()->imp()->debugger();
@@ -285,6 +285,13 @@ Object FunctionObjectImp::construct(ExecState *exec, const List &args)
   return ret;
 }
 
+// ECMA 15.3.2 The Function Constructor
+Object FunctionObjectImp::construct(ExecState *exec, const List &args)
+{
+  return FunctionObjectImp::construct(exec, args, UString(), 0);
+}
+
+
 bool FunctionObjectImp::implementsCall() const
 {
   return true;
diff --git a/JavaScriptCore/kjs/function_object.h b/JavaScriptCore/kjs/function_object.h
index 32d86c9..ade8a59 100644
--- a/JavaScriptCore/kjs/function_object.h
+++ b/JavaScriptCore/kjs/function_object.h
@@ -73,6 +73,7 @@ namespace KJS {
     virtual ~FunctionObjectImp();
 
     virtual bool implementsConstruct() const;
+    virtual Object construct(ExecState *exec, const List &args, const UString &sourceURL, int lineNumber);
     virtual Object construct(ExecState *exec, const List &args);
     virtual bool implementsCall() const;
     virtual Value call(ExecState *exec, Object &thisObj, const List &args);
diff --git a/JavaScriptCore/kjs/object.cpp b/JavaScriptCore/kjs/object.cpp
index dae2de6..b09acfc 100644
--- a/JavaScriptCore/kjs/object.cpp
+++ b/JavaScriptCore/kjs/object.cpp
@@ -368,6 +368,11 @@ Object ObjectImp::construct(ExecState */*exec*/, const List &/*args*/)
   return Object(0);
 }
 
+Object ObjectImp::construct(ExecState *exec, const List &args, const UString &/*sourceURL*/, int /*lineNumber*/)
+{
+  return construct(exec, args);
+}
+
 bool ObjectImp::implementsCall() const
 {
   return false;
diff --git a/JavaScriptCore/kjs/object.h b/JavaScriptCore/kjs/object.h
index 4b1efbb..64a076a 100644
--- a/JavaScriptCore/kjs/object.h
+++ b/JavaScriptCore/kjs/object.h
@@ -244,6 +244,7 @@ namespace KJS {
      * @return The newly created &amp; initialized object
      */
     Object construct(ExecState *exec, const List &args);
+    Object construct(ExecState *exec, const List &args, const UString &sourceURL, int lineNumber);
 
     /**
      * Whether or not the object implements the call() method. If this returns
@@ -547,6 +548,7 @@ namespace KJS {
      * @see Object::construct()
      */
     virtual Object construct(ExecState *exec, const List &args);
+    virtual Object construct(ExecState *exec, const List &args, const UString &sourceURL, int lineNumber);
 
     virtual bool implementsCall() const;
     /**
@@ -694,6 +696,9 @@ namespace KJS {
 
   inline Object Object::construct(ExecState *exec, const List &args)
     { return imp()->construct(exec,args); }
+  
+  inline Object Object::construct(ExecState *exec, const List &args, const UString &sourceURL, int lineNumber)
+  { return imp()->construct(exec,args,sourceURL,lineNumber); }
 
   inline bool Object::implementsCall() const
     { return imp()->implementsCall(); }

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list