JSStringCreateWithUTF8CString top-level property
Creates a JavaScript string from a null-terminated UTF8 string.
string
The null-terminated UTF8 string to copy into the new JSString.
@result
A JSString containing string. Ownership follows the Create Rule.
Implementation
final JSStringRef Function(Pointer<Utf8> string) JSStringCreateWithUTF8CString =
jscLib.lookup<NativeFunction<JSStringRef Function(Pointer<Utf8> string)>>('JSStringCreateWithUTF8CString').asFunction();