toStringCopy method
Converts a JavaScript value to string and copies the result into a JavaScript string.
exception
A pointer to a JSValueRef in which to store an exception, if any. Pass NULL if you do not care to store an exception.
Implementation
JSString toStringCopy({
JSValuePointer? exception,
}) {
return JSString(JSValueRef.jSValueToStringCopy(context.pointer, pointer,
(exception ?? JSValuePointer(nullptr)).pointer));
}