pub unsafe extern "C" fn JS_CopyStringCharsZ( cx: *mut JSContext, str_: *mut JSString, ) -> u8
Copies the string’s characters to a null-terminated char16_t buffer.
Returns nullptr on OOM.