pub unsafe extern "C" fn JSValueToNumber(
ctx: JSContextRef,
value: JSValueRef,
exception: *mut JSValueRef,
) -> f64Expand description
Converts a JavaScript value to number and returns the resulting number.
ctx: The execution context to use.value: TheJSValueRefto convert.exception: A pointer to aJSValueRefin which to store an exception, if any. PassNULLif you do not care to store an exception.
Returns the numeric result of conversion, or NaN if an exception is thrown.