On Wed, Nov 18, 2015 at 6:50 PM, Domenic Denicola <[email protected]> wrote:
> All uses of @@species are to be removed from Promise.race and Promise.all.
> The committee achieved consensus on this, without you.
>
To be precise, steps 3-5 are to be removed entirely from Promise.all
(25.4.4.1) and Promise.race (25.4.4.3)?
So for `WeakPromise.all([ p1, {} ])` a weak reference would be held to p1's
value, the new {} object, *and* the array result of the `all`.
Similarly, `TimeoutPromise.all([ p1, p2 ])` would put timeouts on p1 and p2
*and* on the array result, so the semantics are the same as:
`TimeoutPromise.resolve(TimeoutPromise.all([ TimeoutPromise.resolve(p1),
TimeoutPromise.resolve(p2) ]))`.
I'm not objecting to this semantics, necessarily, I'm just surprised it
wasn't proposed or discussed on the public mailing list before adoption.
--scott
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss