Web features explorer

Serializable errors

Limited availability
Tags: api javascript

The DOMException, Error, EvalError, RangeError, ReferenceError, SyntaxError, TypeError, and URIError objects are serializable. You can call structuredClone() on an error object or pass it to a worker using postMessage().

Browser support

Baseline availability blocked since July 2022 by Safari (29 months)