You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Let _promiseCapability_ be ! NewPromiseCapability(%Promise%).
72
-
1. Let _fromAsyncClosure_ be a new Abstract Closure with no parameters that captures _C_, _mapfn_, and _thisArg_ and performs the following steps when called:
73
-
1. If _mapfn_ is *undefined*, let _mapping_ be *false*.
72
+
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:
73
+
1. If _mapper_ is *undefined*, let _mapping_ be *false*.
74
74
1. Else,
75
-
1. If IsCallable(_mapfn_) is *false*, throw a *TypeError* exception.
75
+
1. If IsCallable(_mapper_) is *false*, throw a *TypeError* exception.
76
76
1. Let _mapping_ be *true*.
77
77
1. Let _usingAsyncIterator_ be ? GetMethod(_asyncItems_, @@asyncIterator).
78
78
1. If _usingAsyncIterator_ is *undefined*, then
79
79
1. Let _usingSyncIterator_ be ? GetMethod(_asyncItems_, @@iterator).
80
80
1. Let _iteratorRecord_ be *undefined*.
81
81
1. If _usingAsyncIterator_ is not *undefined*, then
82
-
1. Set _iteratorRecord_ to ? GetIterator(_asyncItems_, ~async~, _usingAsyncIterator_).
82
+
1. Set _iteratorRecord_ to ? GetIteratorFromMethod(_asyncItems_, _usingAsyncIterator_).
83
83
1. Else if _usingSyncIterator_ is not *undefined*, then
84
-
1. Set _iteratorRecord_ to ? CreateAsyncFromSyncIterator(GetIterator(_asyncItems_, ~sync~, _usingSyncIterator_)).
84
+
1. Set _iteratorRecord_ to ? CreateAsyncFromSyncIterator(? GetIteratorFromMethod(_asyncItems_, _usingSyncIterator_)).
0 commit comments