pub unsafe extern "C" fn JSValueToStringCopy(
ctx: JSContextRef,
value: JSValueRef,
exception: *mut JSValueRef,
) -> JSStringRef
Expand description
Converts a JavaScript value to string and copies the result into a JavaScript string.
ctx
: The execution context to use.value
: TheJSValueRef
to convert.exception
: A pointer to aJSValueRef
in which to store an exception, if any. PassNULL
if you do not care to store an exception.
Returns a JSStringRef
with the result of conversion, or NULL
if an exception is thrown. Ownership follows the Create Rule.