Function mozjs::jsapi::SimpleStringToBigInt
source ยท pub unsafe extern "C" fn SimpleStringToBigInt(
cx: *mut JSContext,
chars: __BindgenOpaqueArray<u64, 2>,
radix: u8,
) -> *mut BigInt
Expand description
Create a BigInt by parsing a string consisting of an optional sign character followed by one or more alphanumeric ASCII digits in the provided radix.
If the radix is not in the range [2, 36], or the string fails to parse, this function returns null and throws an exception.