Title: [285420] trunk/Source/_javascript_Core
Revision
285420
Author
[email protected]
Date
2021-11-08 11:34:25 -0800 (Mon, 08 Nov 2021)

Log Message

Unreviewed, fix the newly added code
https://bugs.webkit.org/show_bug.cgi?id=215438

* runtime/TemporalObject.cpp:
(JSC::roundNumberToIncrement):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (285419 => 285420)


--- trunk/Source/_javascript_Core/ChangeLog	2021-11-08 19:33:39 UTC (rev 285419)
+++ trunk/Source/_javascript_Core/ChangeLog	2021-11-08 19:34:25 UTC (rev 285420)
@@ -1,5 +1,13 @@
 2021-11-08  Yusuke Suzuki  <[email protected]>
 
+        Unreviewed, fix the newly added code
+        https://bugs.webkit.org/show_bug.cgi?id=215438
+
+        * runtime/TemporalObject.cpp:
+        (JSC::roundNumberToIncrement):
+
+2021-11-08  Yusuke Suzuki  <[email protected]>
+
         [JSC] Implement IntlNumberFormat v3
         https://bugs.webkit.org/show_bug.cgi?id=215438
 

Modified: trunk/Source/_javascript_Core/runtime/TemporalObject.cpp (285419 => 285420)


--- trunk/Source/_javascript_Core/runtime/TemporalObject.cpp	2021-11-08 19:33:39 UTC (rev 285419)
+++ trunk/Source/_javascript_Core/runtime/TemporalObject.cpp	2021-11-08 19:34:25 UTC (rev 285420)
@@ -500,6 +500,13 @@
         if (abs(remainder * 2) >= increment)
             quotient += sign ? -1 : 1;
         break;
+    // They are not supported in Temporal right now.
+    case RoundingMode::Expand:
+    case RoundingMode::HalfCeil:
+    case RoundingMode::HalfFloor:
+    case RoundingMode::HalfTrunc:
+    case RoundingMode::HalfEven:
+        break;
     }
     return quotient * increment;
 }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to