[whatwg] Structured Clone of Map and Set objects

Anne van Kesteren annevk at annevk.nl
Wed Sep 4 13:12:22 PDT 2013

On Wed, Sep 4, 2013 at 7:56 PM, Oliver Hunt <oliver at apple.com> wrote:
> The current structured clone algorithm does not include support for the Map and Set types, so a developer would need to manually implement the serialisation and deserialisation.  While this would not be impossible it does seem like it is an unnecessary inconvenience for a core type in ES6.

I suggested this to TC39 a while back and I still think it's a good
idea even though reception was lukewarm at best (the people replying
didn't like to acknowledge the existence of this seemed like). They
should define this as a primitive of the Object type and define which
objects support it and how. The monkey patching we do now is not


More information about the whatwg mailing list