Function JSBigIntCreateWithDouble

Source
pub unsafe extern "C-unwind" fn JSBigIntCreateWithDouble(
    ctx: JSContextRef,
    value: c_double,
    exception: *mut JSValueRef,
) -> JSValueRef
Available on crate features JSValueRef and JSBase only.
Expand description

Creates a JavaScript BigInt with a double.

Parameter ctx: The execution context to use.

Parameter value: The value 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 value, or NULL if an exception is thrown.

If the value is not an integer, an exception is thrown.