Re: Exposing structured clone as an API?

On 24/04/2015 02:18 , Anne van Kesteren wrote:
> On Thu, Apr 23, 2015 at 3:02 PM, Ted Mielczarek <ted@mozilla.com> wrote:
>> Has anyone ever proposed exposing the structured clone algorithm directly as
>> an API?
>
> There has been some talk about moving structured cloning into
> ECMAScript proper and exposing the primitives. But TC39 does not seem
> particularly receptive unless it comes with a way for someone to
> participate in the structured cloning algorithm with custom objects.

Does this have to be any more complicated than adding a toClone() 
convention matching the ones we already have?

-- 
Robin Berjon - http://berjon.com/ - @robinberjon

Received on Friday, 24 April 2015 09:08:20 UTC