script::dom::bindings::structuredclone

Function read

Source
pub(crate) fn read(
    global: &GlobalScope,
    data: StructuredSerializedData,
    rval: MutableHandleValue<'_>,
) -> Result<Vec<DomRoot<MessagePort>>, ()>
Expand description

Read structured serialized data, possibly containing transferred objects. Returns a vec of rooted transfer-received ports, or an error.