pub unsafe extern "C-unwind" fn JSBigIntCreateWithInt64(
ctx: JSContextRef,
integer: i64,
exception: *mut JSValueRef,
) -> JSValueRef
Available on crate features
JSValueRef
and JSBase
only.Expand description
Creates a JavaScript BigInt with a 64-bit signed integer.
Parameter ctx
: The execution context to use.
Parameter integer
: The 64-bit signed integer to copy into the new BigInt JSValue.
Parameter exception
: A pointer to a JSValueRef in which to store an exception, if any. To reliable detect exception, initialize this to null before the call. Pass NULL if you do not care to store an exception.
Returns: A BigInt JSValue of the integer, or NULL if an exception is thrown.