Skip to content

Commit

Permalink
Normative: Remove use of @@species from Promise.all/race
Browse files Browse the repository at this point in the history
Fixes #151, per November 2015 TC39 meeting.
  • Loading branch information
domenic authored and bterlson committed Nov 21, 2015
1 parent 62e01af commit 3b582af
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -34629,8 +34629,6 @@ <h1>Promise.all ( _iterable_ )</h1>
<emu-alg>
1. Let _C_ be the *this* value.
1. If Type(_C_) is not Object, throw a *TypeError* exception.
1. Let _S_ be ? Get(_C_, @@species).
1. If _S_ is neither *undefined* nor *null*, let _C_ be _S_.
1. Let _promiseCapability_ be ? NewPromiseCapability(_C_).
1. Let _iterator_ be GetIterator(_iterable_).
1. IfAbruptRejectPromise(_iterator_, _promiseCapability_).
Expand Down Expand Up @@ -34721,8 +34719,6 @@ <h1>Promise.race ( _iterable_ )</h1>
<emu-alg>
1. Let _C_ be the *this* value.
1. If Type(_C_) is not Object, throw a *TypeError* exception.
1. Let _S_ be ? Get(_C_, @@species).
1. If _S_ is neither *undefined* nor *null*, let _C_ be _S_.
1. Let _promiseCapability_ be ? NewPromiseCapability(_C_).
1. Let _iterator_ be GetIterator(_iterable_).
1. IfAbruptRejectPromise(_iterator_, _promiseCapability_).
Expand All @@ -34734,7 +34730,7 @@ <h1>Promise.race ( _iterable_ )</h1>
1. Return Completion(_result_).
</emu-alg>
<emu-note>
<p>If the _iterable_ argument is empty or if none of the promises in _iterable_ ever settle then the pending promise returned by this method will never be settled</p>
<p>If the _iterable_ argument is empty or if none of the promises in _iterable_ ever settle then the pending promise returned by this method will never be settled.</p>
</emu-note>
<emu-note>
<p>The `race` function expects its *this* value to be a constructor function that supports the parameter conventions of the `Promise` constructor. It also expects that its *this* value provides a `resolve` method.</p>
Expand Down

0 comments on commit 3b582af

Please sign in to comment.