Function JSValueMakeString

Source
pub unsafe extern "C" fn JSValueMakeString(
    ctx: JSContextRef,
    string: JSStringRef,
) -> JSValueRef
Expand description

Creates a JavaScript value of the string type.

  • ctx: The execution context to use.
  • string: The JSStringRef to assign to the newly created JSValueRef. The newly created JSValueRef retains string, and releases it upon garbage collection.

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