Skip to content
This repository was archived by the owner on Jan 26, 2022. It is now read-only.

Commit 4fc5942

Browse files
Kevin SmithKevin Smith
Kevin Smith
authored and
Kevin Smith
committed
Unwrap a completion value properly.
1 parent 4e421c0 commit 4fc5942

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/iterator-operations.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ <h1>IteratorClose ( _iterator_, _completion_ [ , _iteratorKind_ ] )</h1>
3030
1. If _return_ is *undefined*, return Completion(_completion_).
3131
1. Let _innerResult_ be Call(_return_, _iterator_, « »).
3232
1. <ins>If _innerResult_ is not an abrupt completion and _iteratorKind_ is ~async~,</ins>
33-
1. <ins>Let _innerResult_ be AsyncFunctionAwait(_innerResult_).</ins>
33+
1. <ins>Let _innerResult_ be AsyncFunctionAwait(_innerResult_.[[value]]).</ins>
3434
1. If _completion_.[[type]] is ~throw~, return Completion(_completion_).
3535
1. If _innerResult_.[[type]] is ~throw~, return Completion(_innerResult_).
3636
1. If Type(_innerResult_.[[value]]) is not Object, throw a *TypeError* exception.

0 commit comments

Comments
 (0)