jSValueMakeNumber top-level property

Pointer<NativeType> Function(Pointer<NativeType> ctx, double number) jSValueMakeNumber
final

Creates a JavaScript value of the number type. ctx (JSContextRef) The execution context to use. number (double) The double to assign to the newly created JSValue. @result (JSValueRef) A JSValue of the number type, representing the value of number.

Implementation

final Pointer Function(Pointer ctx, double number) jSValueMakeNumber = JscFfi
    .lib
    .lookup<NativeFunction<Pointer Function(Pointer, Double)>>(
        'JSValueMakeNumber')
    .asFunction();