JSValueToStringCopy(_:_:_:)
Converts a JavaScript value to a string and copies the result into a JavaScript string.
Declaration
func JSValueToStringCopy(_ ctx: JSContextRef!, _ value: JSValueRef!, _ exception: UnsafeMutablePointer<JSValueRef?>!) -> JSStringRef!Parameters
- ctx:
The execution context to use.
- value:
The Jsvalueref to convert.
- exception:
A pointer to a Jsvalueref to store an exception in, if any. Pass
NULLto discard any exception.
Return Value
A JSStringRef with the result of conversion, or NULL if the system throws an exception. Ownership follows The Create Rule.