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 JSString to assign to the newly created JSValue. The newly created JSValue retains string, and releases it upon garbage collection.

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