Function script::dom::bindings::conversions::jsstring_to_str

source ยท
pub 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.