JSValueToStringCopy top-level property

JSStringRef Function(JSContextRef ctx, JSValueRef value, Pointer<JSValueRef> exception) JSValueToStringCopy
final

Converts a JavaScript value to string and copies the result into a JavaScript string. ctx (JSContextRef) The execution context to use. value (JSValueRef) The JSValue to convert. exception (JSValueRef*) A pointer to a JSValueRef in which to store an exception, if any. Pass NULL if you do not care to store an exception. @result (JSStringRef) A JSString with the result of conversion, or NULL if an exception is thrown. Ownership follows the Create Rule.

Implementation

final JSStringRef Function(
  JSContextRef ctx,
  JSValueRef value,
  Pointer<JSValueRef> exception,
)
JSValueToStringCopy =
    kLookup<
      NativeFunction<
        JSStringRef Function(JSContextRef, JSValueRef, Pointer<JSValueRef>)
      >
    >('JSValueToStringCopy').asFunction();