Skip to main content

write

Function write 

Source
pub fn write(
    interp: &Interp<'_>,
    value: &Value,
    flags: i32,
) -> Result<Vec<u8>, String>
Expand description

Serialise value.

§Errors

The reference’s own messages: circular reference for a cycle without JS_WRITE_OBJ_REFERENCE, only value properties are supported for an enumerable accessor, and unsupported object class for anything with no serialisation.