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.

Returns the numeric result of conversion, or NaN if an exception is thrown.