Bug 250719

Summary: Provide public C API for constructing, checking, and converting BigInts
Product: WebKit Reporter: Kasper Isager Dalsgarð <kasperisager>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: mark.lam, webkit-bug-importer, yijia_huang, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Mac (Apple Silicon)   
OS: macOS 13   
See Also: https://bugs.webkit.org/show_bug.cgi?id=250511

Description Kasper Isager Dalsgarð 2023-01-17 11:27:52 PST
Originally mentioned in relation to https://bugs.webkit.org/show_bug.cgi?id=250511, the public JavaScriptCore C API is currently missing functions for constructing BigInts, checking if a value is a BigInt, and converting BigInts to C primitives. Something akin to the following set of functions would be fantastic:

- JSValueIsBigInt()
- JSValueMakeBigInt64()
- JSValueMakeBigUInt64()
- JSValueToBigInt64()
- JSValueToBigUInt64()
Comment 1 Radar WebKit Bug Importer 2023-01-17 18:10:18 PST
<rdar://problem/104360015>
Comment 2 Yijia Huang 2024-01-23 11:29:44 PST

*** This bug has been marked as a duplicate of bug 250511 ***