Skip to content

TypedMessenger needs a hook for error serialization. #485

@jespertheend

Description

@jespertheend

Browsers currently don't support serializing Aggregate errors for instance, see whatwg/html#5749.
Also when a worker throws custom errors such as class MyError extends Error, these are not serialized either. This doesn't allow the main thread to catch it and check its type using instanceof.

Metadata

Metadata

Assignees

Labels

effort: ModerateWill take a good amount of time and experience with the codebase, but feasible.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions