Function script::dom::bindings::conversions::windowproxy_from_handlevalue
source ยท pub unsafe fn windowproxy_from_handlevalue(
v: HandleValue<'_>,
_cx: *mut JSContext,
) -> Result<Root<Dom<WindowProxy>>, ()>
Expand description
Get a DomRoot<T>
for a WindowProxy accessible from a HandleValue
.
Caller is responsible for throwing a JS exception if needed in case of error.