Re: Cloning WeakSet/WeakMap

2018-02-09 Thread Michał Wadas
Why would they? You can put single object in *infinite* amount of WeakSets and it won't prevent it's garbage collection. On 9 Feb 2018 4:11 pm, "Michael Luder-Rosefield" wrote: > Possibly a silly question, but... > > What happens re garbage collection if you have two

Re: Cloning WeakSet/WeakMap

2018-02-09 Thread David Bruant
2018-02-09 10:05 GMT-05:00 Michał Wadas : > English isn't my native language, so I probably made a mistake. > oh ok, sorry for my misinterpretation > I was asked to add WeakSet.prototype.union(iterable) creating new WeakSet > instance including data from both iterable and

Re: Cloning WeakSet/WeakMap

2018-02-09 Thread Michał Wadas
English isn't my native language, so I probably made a mistake. I was asked to add WeakSet.prototype.union(iterable) creating new WeakSet instance including data from both iterable and original WeakSet. On 9 Feb 2018 4:01 pm, "David Bruant" wrote: > Hi, > > My

Re: Cloning WeakSet/WeakMap

2018-02-09 Thread Thomas Grainger
I think this is referring to cloning a WeakSet into another WeakSet Thomas Grainger On 9 February 2018 at 15:01, David Bruant wrote: > Hi, > > My understanding is that cloning a WeakSet into a Set would remove all its > properties related to security and garbage collection.

Re: Cloning WeakSet/WeakMap

2018-02-09 Thread David Bruant
Hi, My understanding is that cloning a WeakSet into a Set would remove all its properties related to security and garbage collection. The properties related to security and garbage collection of WeakSet are based on the fact that its elements are not enumerable by someone who would only be

Cloning WeakSet/WeakMap

2018-02-09 Thread Michał Wadas
Hi. I was asked to include a way to clone WeakSet in Set builtins proposal. Is there any consensus on security of such operation? Michał Wadas ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss