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
: TheJSStringRef
to assign to the newly createdJSValueRef
. The newly createdJSValueRef
retainsstring
, and releases it upon garbage collection.
Returns a JSValueRef
of the string
type, representing the value of string
.