Skip to content

StructuredClone allocation failure #936

@annevk

Description

@annevk

According to @bakulf Mozilla will not deliver a message when an object cannot be deserialized in a particular realm, e.g., ArrayBuffer's allocation exception. Instead, for workers anyway, the exception will go to onerror.

Perhaps we should specify, maybe as part of #935, that some special error message gets delivered instead. E.g., we could set data to the exception thrown or set data to null and expose the exception separately. That way you don't get a global exception you don't know the origin of but instead a message you were expecting, just without the data to a problem.

This is also important for SharedArrayBuffer as I understand it.

@lars-t-hansen, @pizlonator, and @ajklein might have thoughts.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions