Skip to content

Handle of private fields in the structured cloning #7123

@petamoriken

Description

@petamoriken

Ref: tc39/ecma262#1668

In current spec, all objects have an internal slot named [[PrivateElements]]. It is not allowed in the structured cloning.

  1. Otherwise, if value has any internal slot other than [[Prototype]] or [[Extensible]], then throw a "DataCloneError" DOMException.

Additional: Perhaps a DataCloneError should be thrown for objects with private properties or accessors, but that is a breaking change.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions