BASELINE NowYouCanUse.com
Limited Availability
id: serializable-errors

Serializable errors

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().
Baseline Status: This feature is currently Limited and is missing in at least one major browser engine.
Desktop Browser Engine Support
Google Chrome
77
Supported
Mozilla Firefox
103
Supported
Apple Safari
Unsupported
Microsoft Edge
79
Supported
Mobile Browser Engine Support
Chrome Android
77
Firefox Android
103
Safari iOS
Specifications and References