Title: [270766] trunk/Source/_javascript_Core
Revision
270766
Author
[email protected]
Date
2020-12-14 03:46:06 -0800 (Mon, 14 Dec 2020)

Log Message

Minor cleanup of BigInts
https://bugs.webkit.org/show_bug.cgi?id=219253

Reviewed by Yusuke Suzuki.

* runtime/JSBigInt.cpp:
(JSC::rightShiftByAbsolute):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (270765 => 270766)


--- trunk/Source/_javascript_Core/ChangeLog	2020-12-14 10:35:05 UTC (rev 270765)
+++ trunk/Source/_javascript_Core/ChangeLog	2020-12-14 11:46:06 UTC (rev 270766)
@@ -1,3 +1,13 @@
+2020-12-14  Robin Morisset  <[email protected]>
+
+        Minor cleanup of BigInts
+        https://bugs.webkit.org/show_bug.cgi?id=219253
+
+        Reviewed by Yusuke Suzuki.
+
+        * runtime/JSBigInt.cpp:
+        (JSC::rightShiftByAbsolute):
+
 2020-12-13  Yusuke Suzuki  <[email protected]>
 
         [JSC] Introduce vmEntryCustomAccessor and vmEntryHostFunction for JITCage

Modified: trunk/Source/_javascript_Core/runtime/JSBigInt.cpp (270765 => 270766)


--- trunk/Source/_javascript_Core/runtime/JSBigInt.cpp	2020-12-14 10:35:05 UTC (rev 270765)
+++ trunk/Source/_javascript_Core/runtime/JSBigInt.cpp	2020-12-14 11:46:06 UTC (rev 270766)
@@ -2048,6 +2048,7 @@
     RETURN_IF_EXCEPTION(scope, nullptr);
 
     if (!bitsShift) {
+        result->setDigit(resultLength - 1, 0);
         for (unsigned i = digitalShift; i < length; i++)
             result->setDigit(i - digitalShift, x.digit(i));
     } else {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to