pub unsafe extern "C" fn ToBigInt(
cx: *mut JSContext,
val: Handle<Value>,
) -> *mut BigInt
Expand description
Convert a JS::Value to a BigInt using the ECMAScript ToBigInt algorithm (https://tc39.es/ecma262/#sec-tobigint).
(Note in particular that this will throw if passed a value whose type is ‘number’. To convert a number to a BigInt, use one of the overloads of JS::NumberToBigInt().)