Function javascriptcore_sys::JSValueToStringCopy [] [src]

pub unsafe extern "C" fn JSValueToStringCopy(
    ctx: JSContextRef,
    value: JSValueRef,
    exception: *mut JSValueRef
) -> JSStringRef

Converts a JavaScript value to string and copies the result into a JavaScript string.

Returns a JSString with the result of conversion, or NULL if an exception is thrown. Ownership follows the Create Rule.