Bug 250719 - Provide public C API for constructing, checking, and converting BigInts
Summary: Provide public C API for constructing, checking, and converting BigInts
Status: RESOLVED DUPLICATE of bug 250511
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Local Build
Hardware: Mac (Apple Silicon) macOS 13
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-01-17 11:27 PST by Kasper Isager Dalsgarð
Modified: 2024-01-23 11:29 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***