Enables serialization of errors, specifically, DOMException, Error, EvalError, RangeError, ReferenceError, SyntaxError, TypeError, and URIError. An example of where this capability may be used is to pass an Error to a worker using PostMessage().

Motivation

The primary motivation is Transferable Streams. For example, when we see a read error, we need to pass the error to the remote end.

Documentation

Specification

Editor's draft

Status in Chromium

Blink>Bindings


Enabled by default (tracking bug) in:

  • Chrome for desktop release 77
  • Chrome for Android release 77
  • Android WebView release 77

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

  • Positive
  • No signal
  • No signal
  • No signals

Owners

Last updated on 2020-12-21