Skip to content

Commit cf50e8c

Browse files
committed
spec: Await next values with default map ƒ
Fixes #19.
1 parent 6745c59 commit cf50e8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ <h1><ins>Array.fromAsync ( _asyncItems_ [ , _mapfn_ [ , _thisArg_ ] ] )</ins></h
7474
1. If _mapping_ is *true*, then
7575
1. Let _mappedValue_ be Call(_mapfn_, _thisArg_, &laquo; _nextValue_, 𝔽(_k_) &raquo;).
7676
1. IfAbruptCloseAsyncIterator(_iteratorRecord_, _mappedValue_).
77-
1. Set _mappedValue_ to Await(_mappedValue_).
78-
1. IfAbruptCloseAsyncIterator(_iteratorRecord_, _mappedValue_).
79-
1. Set _mappedValue_ to _mappedValue_.[[Value]].
8077
1. Else, let _mappedValue_ be _nextValue_.
78+
1. Set _mappedValue_ to Await(_mappedValue_).
79+
1. IfAbruptCloseAsyncIterator(_iteratorRecord_, _mappedValue_).
80+
1. Set _mappedValue_ to _mappedValue_.[[Value]].
8181
1. Let _defineStatus_ be CreateDataPropertyOrThrow(_A_, _Pk_, _mappedValue_).
8282
1. If _defineStatus_ is an abrupt completion, return ? AsyncIteratorClose(_iteratorRecord_, _defineStatus_).
8383
1. Set _k_ to _k_ + 1.

0 commit comments

Comments
 (0)