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

darin darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 07:53:40 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit 68a065221667109211a11ea3934e4697f2727c92
Author: darin <darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Mon Aug 25 01:57:31 2003 +0000

            Reviewed by John.
    
            - fixed 3098350 -- opt. params to date methods are ignored (can't set end date in Exchange/Outlook web cal.)
    
            * kjs/date_object.cpp: (DateProtoFuncImp::call): Added code to handle the optional parameters.
            Strangely, the table of functions already had the right number of parameters listed, but the
            code to look at the parameter values was missing.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4884 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/JavaScriptCore/ChangeLog b/JavaScriptCore/ChangeLog
index 1f48c44..4625704 100644
--- a/JavaScriptCore/ChangeLog
+++ b/JavaScriptCore/ChangeLog
@@ -1,3 +1,13 @@
+2003-08-24  Darin Adler  <darin at apple.com>
+
+        Reviewed by John.
+
+        - fixed 3098350 -- opt. params to date methods are ignored (can't set end date in Exchange/Outlook web cal.)
+
+        * kjs/date_object.cpp: (DateProtoFuncImp::call): Added code to handle the optional parameters.
+        Strangely, the table of functions already had the right number of parameters listed, but the
+        code to look at the parameter values was missing.
+
 === Safari-94 ===
 
 2003-08-17  Darin Adler  <darin at apple.com>
diff --git a/JavaScriptCore/ChangeLog-2003-10-25 b/JavaScriptCore/ChangeLog-2003-10-25
index 1f48c44..4625704 100644
--- a/JavaScriptCore/ChangeLog-2003-10-25
+++ b/JavaScriptCore/ChangeLog-2003-10-25
@@ -1,3 +1,13 @@
+2003-08-24  Darin Adler  <darin at apple.com>
+
+        Reviewed by John.
+
+        - fixed 3098350 -- opt. params to date methods are ignored (can't set end date in Exchange/Outlook web cal.)
+
+        * kjs/date_object.cpp: (DateProtoFuncImp::call): Added code to handle the optional parameters.
+        Strangely, the table of functions already had the right number of parameters listed, but the
+        code to look at the parameter values was missing.
+
 === Safari-94 ===
 
 2003-08-17  Darin Adler  <darin at apple.com>
diff --git a/JavaScriptCore/kjs/date_object.cpp b/JavaScriptCore/kjs/date_object.cpp
index 2b7d974..d5101dd 100644
--- a/JavaScriptCore/kjs/date_object.cpp
+++ b/JavaScriptCore/kjs/date_object.cpp
@@ -516,21 +516,39 @@ Value DateProtoFuncImp::call(ExecState *exec, Object &thisObj, const List &args)
     break;
   case SetSeconds:
     t->tm_sec = args[0].toInt32(exec);
+    if (args.size() >= 2)
+      ms = args[1].toInt32(exec);
     break;
   case SetMinutes:
     t->tm_min = args[0].toInt32(exec);
+    if (args.size() >= 2)
+      t->tm_sec = args[1].toInt32(exec);
+    if (args.size() >= 3)
+      ms = args[2].toInt32(exec);
     break;
   case SetHours:
     t->tm_hour = args[0].toInt32(exec);
+    if (args.size() >= 2)
+      t->tm_min = args[1].toInt32(exec);
+    if (args.size() >= 3)
+      t->tm_sec = args[2].toInt32(exec);
+    if (args.size() >= 4)
+      ms = args[3].toInt32(exec);
     break;
   case SetDate:
     t->tm_mday = args[0].toInt32(exec);
     break;
   case SetMonth:
     t->tm_mon = args[0].toInt32(exec);
+    if (args.size() >= 2)
+      t->tm_mday = args[1].toInt32(exec);
     break;
   case SetFullYear:
     t->tm_year = args[0].toInt32(exec) - 1900;
+    if (args.size() >= 2)
+      t->tm_mon = args[1].toInt32(exec);
+    if (args.size() >= 3)
+      t->tm_mday = args[2].toInt32(exec);
     break;
   case SetYear:
     t->tm_year = args[0].toInt32(exec) >= 1900 ? args[0].toInt32(exec) - 1900 : args[0].toInt32(exec);

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list