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

hyatt hyatt at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 06:44:44 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit 81295db6c18ae7eeacf6b560363722ac7c7c9caa
Author: hyatt <hyatt at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Wed Sep 25 22:46:33 2002 +0000

    	Fix the impls of min/max to not use +inf/-inf when you have
    	arguments.  Technically there's still a bug here for the no
    	argument case, probably caused by a screwup when +inf/-inf are
    	converted to doubles.
    
            * kjs/math_object.cpp:
            (MathFuncImp::call):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2168 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/JavaScriptCore/ChangeLog b/JavaScriptCore/ChangeLog
index 2d5d847..aa40975 100644
--- a/JavaScriptCore/ChangeLog
+++ b/JavaScriptCore/ChangeLog
@@ -1,3 +1,13 @@
+2002-09-25  David Hyatt  <hyatt at apple.com>
+
+	Fix the impls of min/max to not use +inf/-inf when you have
+	arguments.  Technically there's still a bug here for the no
+	argument case, probably caused by a screwup when +inf/-inf are
+	converted to doubles.
+	
+        * kjs/math_object.cpp:
+        (MathFuncImp::call):
+
 2002-09-25  Darin Adler  <darin at apple.com>
 
 	- fixed 3057964 -- JS problem performing MD5 script embedded in yahoo login page
diff --git a/JavaScriptCore/ChangeLog-2002-12-03 b/JavaScriptCore/ChangeLog-2002-12-03
index 2d5d847..aa40975 100644
--- a/JavaScriptCore/ChangeLog-2002-12-03
+++ b/JavaScriptCore/ChangeLog-2002-12-03
@@ -1,3 +1,13 @@
+2002-09-25  David Hyatt  <hyatt at apple.com>
+
+	Fix the impls of min/max to not use +inf/-inf when you have
+	arguments.  Technically there's still a bug here for the no
+	argument case, probably caused by a screwup when +inf/-inf are
+	converted to doubles.
+	
+        * kjs/math_object.cpp:
+        (MathFuncImp::call):
+
 2002-09-25  Darin Adler  <darin at apple.com>
 
 	- fixed 3057964 -- JS problem performing MD5 script embedded in yahoo login page
diff --git a/JavaScriptCore/ChangeLog-2003-10-25 b/JavaScriptCore/ChangeLog-2003-10-25
index 2d5d847..aa40975 100644
--- a/JavaScriptCore/ChangeLog-2003-10-25
+++ b/JavaScriptCore/ChangeLog-2003-10-25
@@ -1,3 +1,13 @@
+2002-09-25  David Hyatt  <hyatt at apple.com>
+
+	Fix the impls of min/max to not use +inf/-inf when you have
+	arguments.  Technically there's still a bug here for the no
+	argument case, probably caused by a screwup when +inf/-inf are
+	converted to doubles.
+	
+        * kjs/math_object.cpp:
+        (MathFuncImp::call):
+
 2002-09-25  Darin Adler  <darin at apple.com>
 
 	- fixed 3057964 -- JS problem performing MD5 script embedded in yahoo login page
diff --git a/JavaScriptCore/kjs/math_object.cpp b/JavaScriptCore/kjs/math_object.cpp
index 6ca32d6..93744d1 100644
--- a/JavaScriptCore/kjs/math_object.cpp
+++ b/JavaScriptCore/kjs/math_object.cpp
@@ -182,10 +182,12 @@ Value MathFuncImp::call(ExecState *exec, Object &/*thisObj*/, const List &args)
       double val = args[k].toNumber(exec);
       if ( isNaN( val ) )
       {
-        result = NaN;
+	    result = NaN;
         break;
       }
-      if ( val > result )
+      // Comparing a number to negative infinity doesn't work.  
+      // -dwh
+      if ( k == 0 || val > result )
         result = val;
     }
     break;
@@ -200,7 +202,9 @@ Value MathFuncImp::call(ExecState *exec, Object &/*thisObj*/, const List &args)
         result = NaN;
         break;
       }
-      if ( val < result )
+      // Comparing a number to positive infinity doesn't work.  
+      // -dwh
+      if ( k == 0 || val < result )
         result = val;
     }
     break;

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list