bruant.d at gmail.com
Fri Feb 9 15:09:17 UTC 2018
2018-02-09 10:05 GMT-05:00 Michał Wadas <michalwadas at gmail.com>:
> 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 original WeakSet.
ok, I don't have an opinion on this idea
> On 9 Feb 2018 4:01 pm, "David Bruant" <bruant.d at gmail.com> wrote:
>> 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 holding a reference to the WeakSet. If you want to "clone" a
>> WeakSet into a Set it means you have an expectation that the set of
>> elements are deterministically enumerable.
>> WeakSets and Sets, despite there close name and API, are used in
>> different circumstances.
>> 2018-02-09 9:53 GMT-05:00 Michał Wadas <michalwadas at gmail.com>:
>>> 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 at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss