jSValueMakeBoolean top-level property
Creates a JavaScript value of the boolean type.
ctx
(JSContextRef) The execution context to use.
boolean
(bool) The bool to assign to the newly created JSValue.
@result
(JSValueRef) A JSValue of the boolean type, representing the value of boolean.
Implementation
final Pointer Function(Pointer ctx, int boolean) jSValueMakeBoolean = JscFfi.lib
.lookup<NativeFunction<Pointer Function(Pointer, Int8)>>(
'JSValueMakeBoolean')
.asFunction();