Skip to content

Review of structured clone algorithms #2555

@syg

Description

@syg

We reached consensus on the general idea of taking over maintainership of the structured clone algorithm in the October 2021 TC39, pending a requested review by @erights of the concrete algorithm proposed to be refactored into ecma262.

The two algorithms proposed to be copied are StructuredSerializeInternal and StructuredDeserialize.

For StructuredSerializeInternal:

  • Steps 19 and 20 will be refactored out, as they deal with non-ES values.
  • All occurrences of "throw a "DataCloneError" DOMException" will be changed to "throw a host-defined exception".

For StructuredDeserialize:

  • Step 20 and all its substeps will be refactored out since it deals with non-ES values.
  • All occurrences of "throw a "DataCloneError" DOMException" will be changed to "throw a host-defined exception".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions