Function JSValueMakeNumber

Source
pub unsafe extern "C" fn JSValueMakeNumber(
    ctx: JSContextRef,
    number: f64,
) -> JSValueRef
Expand description

Creates a JavaScript value of the number type.

  • ctx: The execution context to use.
  • number: The f64 to assign to the newly created JSValueRef.

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