Function JSValueMakeBoolean

Source
pub unsafe extern "C" fn JSValueMakeBoolean(
    ctx: JSContextRef,
    boolean: bool,
) -> JSValueRef
Expand description

Creates a JavaScript value of the boolean type.

  • ctx: The execution context to use.
  • boolean: The bool to assign to the newly created JSValueRef.

Returns a JSValueRef of the boolean type, representing the value of boolean.