JSValueToNumber top-level property
double Function(JSContextRef ctx, JSValueRef value, Pointer<JSValueRef> exception)
JSValueToNumber
final
Converts a JavaScript value to number and returns the resulting number.
ctx
(JSContextRef) The execution context to use.
value
(JSValueRef) The JSValue to convert.
exception
(JSValueRef*) A pointer to a JSValueRef in which to store an exception, if any. Pass NULL if you do not care to store an exception.
@result
(double) The numeric result of conversion, or NaN if an exception is thrown.
Implementation
final double Function(
JSContextRef ctx,
JSValueRef value,
Pointer<JSValueRef> exception,
)
JSValueToNumber =
kLookup<
NativeFunction<
Double Function(JSContextRef, JSValueRef, Pointer<JSValueRef>)
>
>('JSValueToNumber').asFunction();