Re: [whatwg] Structured Clone of Map and Set objects

On Wed, Sep 4, 2013 at 7:56 PM, Oliver Hunt <oliver@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
great.


-- 
http://annevankesteren.nl/

Received on Wednesday, 4 September 2013 20:12:46 UTC