diff --git a/spec.html b/spec.html index bf03505..1a6c846 100644 --- a/spec.html +++ b/spec.html @@ -55,7 +55,7 @@

Array Objects

Properties of the Array Constructor

-

Array.fromAsync ( _asyncItems_ [ , _mapfn_ [ , _thisArg_ ] ] )

+

Array.fromAsync ( _asyncItems_ [ , _mapper_ [ , _thisArg_ ] ] )

This section is a wholly new subsection of the Array.fromAsync ( _asyncItems_ [ , _mapfn_ [ , _thisArg_ ] ] ) 1. Let _C_ be the *this* value. 1. Let _promiseCapability_ be ! NewPromiseCapability(%Promise%). - 1. Let _fromAsyncClosure_ be a new Abstract Closure with no parameters that captures _C_, _mapfn_, and _thisArg_ and performs the following steps when called: - 1. If _mapfn_ is *undefined*, let _mapping_ be *false*. + 1. Let _fromAsyncClosure_ be a new Abstract Closure with no parameters that captures _C_, _asyncItems_, _mapper_, and _thisArg_ and performs the following steps when called: + 1. If _mapper_ is *undefined*, let _mapping_ be *false*. 1. Else, - 1. If IsCallable(_mapfn_) is *false*, throw a *TypeError* exception. + 1. If IsCallable(_mapper_) is *false*, throw a *TypeError* exception. 1. Let _mapping_ be *true*. 1. Let _usingAsyncIterator_ be ? GetMethod(_asyncItems_, @@asyncIterator). 1. If _usingAsyncIterator_ is *undefined*, then 1. Let _usingSyncIterator_ be ? GetMethod(_asyncItems_, @@iterator). 1. Let _iteratorRecord_ be *undefined*. 1. If _usingAsyncIterator_ is not *undefined*, then - 1. Set _iteratorRecord_ to ? GetIterator(_asyncItems_, ~async~, _usingAsyncIterator_). + 1. Set _iteratorRecord_ to ? GetIteratorFromMethod(_asyncItems_, _usingAsyncIterator_). 1. Else if _usingSyncIterator_ is not *undefined*, then - 1. Set _iteratorRecord_ to ? CreateAsyncFromSyncIterator(GetIterator(_asyncItems_, ~sync~, _usingSyncIterator_)). + 1. Set _iteratorRecord_ to ? CreateAsyncFromSyncIterator(? GetIteratorFromMethod(_asyncItems_, _usingSyncIterator_)). 1. If _iteratorRecord_ is not *undefined*, then 1. If IsConstructor(_C_) is *true*, then 1. Let _A_ be ? Construct(_C_). @@ -102,7 +102,7 @@

Array.fromAsync ( _asyncItems_ [ , _mapfn_ [ , _thisArg_ ] ] )Array.fromAsync ( _asyncItems_ [ , _mapfn_ [ , _thisArg_ ] ] )