pub(crate) unsafe fn jsstring_to_str(
cx: *mut JSContext,
s: NonNull<JSString>,
) -> DOMString
Expand description
Convert the given JSString
to a DOMString
. Fails if the string does not
contain valid UTF-16.
§Safety
cx and s must point to valid values.