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