Ref: tc39/ecma262#1668
In current spec, all objects have an internal slot named [[PrivateElements]]. It is not allowed in the structured cloning.
- 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.
Ref: tc39/ecma262#1668
In current spec, all objects have an internal slot named
[[PrivateElements]]. It is not allowed in the structured cloning.Additional: Perhaps a
DataCloneErrorshould be thrown for objects with private properties or accessors, but that is a breaking change.