Skip to content

Support HTML serialization/structured clone #548

@littledan

Description

@littledan

@slightlyoff pointed out that Temporal objects should transparently be serialized by HTML, i.e., structured clone, i.e., "just working" round trip in postMessage (including in Node.js worker_threads!), IndexedDB, etc. Supporting this would be a matter of making a PR against HTML analogous to whatwg/html#3480 . I don't think custom calendars or timezones could be serializable (causing a DataCloneError), but the built-in ones should be fine to serialize. No rush to take an action to take right now; we can prepare this PR when this proposal is at (or almost at) Stage 3.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions