JSValueMakeString top-level property
Creates a JavaScript value of the string type.
ctx
(JSContextRef) The execution context to use.
string
(JSStringRef) The JSString to assign to the newly created JSValue. The newly created JSValue retains string, and releases it upon garbage collection.
@result
(JSValueRef) A JSValue of the string type, representing the value of string.
Implementation
final JSValueRef Function(JSContextRef ctx, JSStringRef string)
JSValueMakeString =
kLookup<NativeFunction<JSValueRef Function(JSContextRef, JSStringRef)>>(
'JSValueMakeString',
).asFunction();