pub(crate) fn root_from_handlevalue<T>(
v: Handle<'_, Value>,
cx: JSContext,
) -> Result<Root<Dom<T>>, ()>where
T: DomObject + IDLInterface,Expand description
Get a DomRoot<T> for a DOM object accessible from a HandleValue.
Caller is responsible for throwing a JS exception if needed in case of error.
ยงSafety
cx must point to a valid, non-null JS context.