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
The execution context to use.
value
The JSValue to convert.
exception
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
The numeric result of conversion, or NaN if an exception is thrown.
JS_EXPORT double JSValueToNumber(JSContextRef ctx, JSValueRef value, JSValueRef* exception);
Implementation
final double Function(JSContextRef ctx, JSValueRef value, Pointer<JSValueRef> exception) JSValueToNumber =
jscLib.lookup<NativeFunction<Double Function(JSContextRef ctx, JSValueRef value, Pointer<JSValueRef> exception)>>('JSValueToNumber').asFunction();