Title: [170441] trunk/Source/_javascript_Core
Revision
170441
Author
gga...@apple.com
Date
2014-06-25 14:59:54 -0700 (Wed, 25 Jun 2014)

Log Message

2014-06-25  Geoffrey Garen  <gga...@apple.com>

        Build fix.

        Unreviewed.

        * runtime/JSDateMath.cpp:
        (JSC::parseDateFromNullTerminatedCharacters):
        * runtime/VM.cpp:
        (JSC::VM::resetDateCache): Use std::numeric_limits instead of QNaN
        constant since that constant doesn't exist anymore.

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (170440 => 170441)


--- trunk/Source/_javascript_Core/ChangeLog	2014-06-25 21:51:45 UTC (rev 170440)
+++ trunk/Source/_javascript_Core/ChangeLog	2014-06-25 21:59:54 UTC (rev 170441)
@@ -1,5 +1,17 @@
 2014-06-25  Geoffrey Garen  <gga...@apple.com>
 
+        Build fix.
+
+        Unreviewed.
+
+        * runtime/JSDateMath.cpp:
+        (JSC::parseDateFromNullTerminatedCharacters):
+        * runtime/VM.cpp:
+        (JSC::VM::resetDateCache): Use std::numeric_limits instead of QNaN
+        constant since that constant doesn't exist anymore.
+
+2014-06-25  Geoffrey Garen  <gga...@apple.com>
+
         Unreviewed, rolling out r166876.
 
         Caused some ECMA test262 failures

Modified: trunk/Source/_javascript_Core/runtime/JSDateMath.cpp (170440 => 170441)


--- trunk/Source/_javascript_Core/runtime/JSDateMath.cpp	2014-06-25 21:51:45 UTC (rev 170440)
+++ trunk/Source/_javascript_Core/runtime/JSDateMath.cpp	2014-06-25 21:59:54 UTC (rev 170441)
@@ -228,7 +228,7 @@
     int offset;
     double ms = WTF::parseDateFromNullTerminatedCharacters(dateString, haveTZ, offset);
     if (std::isnan(ms))
-        return QNaN;
+        return std::numeric_limits<double>::quiet_NaN();
 
     // fall back to local timezone
     if (!haveTZ)

Modified: trunk/Source/_javascript_Core/runtime/VM.cpp (170440 => 170441)


--- trunk/Source/_javascript_Core/runtime/VM.cpp	2014-06-25 21:51:45 UTC (rev 170440)
+++ trunk/Source/_javascript_Core/runtime/VM.cpp	2014-06-25 21:59:54 UTC (rev 170441)
@@ -496,7 +496,7 @@
 {
     localTimeOffsetCache.reset();
     cachedDateString = String();
-    cachedDateStringValue = QNaN;
+    cachedDateStringValue = std::numeric_limits<double>::quiet_NaN();
     dateInstanceCache.reset();
 }
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to