Function script::dom::bindings::structuredclone::write

source ยท
pub fn write(
    cx: JSContext,
    message: HandleValue<'_>,
    transfer: Option<CustomAutoRooterGuard<'_, Vec<*mut JSObject>>>,
) -> Result<StructuredSerializedData, Error>
Expand description

Writes a structured clone. Returns a DataClone error if that fails.