Function javascriptcore_sys::JSValueToNumber
[−]
[src]
pub unsafe extern "C" fn JSValueToNumber(
ctx: JSContextRef,
value: JSValueRef,
exception: *mut JSValueRef
) -> f64
Converts a JavaScript value to number and returns the resulting number.
ctx: The execution context to use.value: TheJSValueto 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.