pub unsafe fn jsstring_to_str(cx: *mut JSContext, s: *mut JSString) -> DOMString
Expand description

Convert the given JSString to a DOMString. Fails if the string does not contain valid UTF-16.