pub unsafe extern "C-unwind" fn JSBigIntCreateWithString(
ctx: JSContextRef,
string: JSStringRef,
exception: *mut JSValueRef,
) -> JSValueRef
Available on crate features
JSBase
and JSValueRef
only.Expand description
Creates a JavaScript BigInt with an integer represented in string.
Parameter ctx
: The execution context to use.
Parameter string
: The JSStringRef representation of an integer.
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 string, or NULL if an exception is thrown.
This is equivalent to calling the BigInt
constructor from JavaScript with a string argument.
ยงSafety
ctx
must be a valid pointer.string
must be a valid pointer.exception
must be a valid pointer or null.