[Webkit-unassigned] [Bug 210755] New: [JSC] BigInt constructor should accept larger integers than safe-integers

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 20 11:39:37 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=210755

            Bug ID: 210755
           Summary: [JSC] BigInt constructor should accept larger integers
                    than safe-integers
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ysuzuki at apple.com

This is spec change introduced in https://github.com/tc39/proposal-bigint/pull/138.
We should change our BigInt constructor,

1. Accept larger integer
2. Add JSBigInt::createFrom(..., double) which properly creates JSBigInt with larger integers. Currently we are casting double to int64_t and this was safe because double is safe-integer. But after accepting larger integers, this cast produces incorrect value.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200420/f08d7c4c/attachment-0001.htm>


More information about the webkit-unassigned mailing list