The structured clone algorithm - Web APIs | MDN (original) (raw)

Things that don't work with structured clone

Supported types

JavaScript types

Error types

For Error types, the error name must be one of: Error, EvalError, RangeError, ReferenceError, SyntaxError, TypeError, URIError (or will be set to "Error").

Browsers must serialize the properties name and message, and are expected to serialize other "interesting" properties of the errors such as stack, cause, etc.

AggregateError support is expected to be added to the specification in whatwg/html#5749 (and is already supported in some browsers).

Web/API types

**Note:**Serializable objects are marked up in Web IDL files with the attribute [Serializable].

See also