Skip to content

Commit b843c8a

Browse files
authored
bugfix: use correct variable (#19)
1 parent ae423b1 commit b843c8a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spec.emu

+3-2
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,10 @@ copyright: false
159159
1. Return ? IteratorCloseAll(_openIters_, ThrowCompletion(a newly created *TypeError* object)).
160160
1. For each integer _k_ such that 1 ≤ _k_ < _iterCount_, in ascending order, do
161161
1. Let _open_ be Completion(IteratorStep(_iters_[_k_])).
162-
1. If _result_ is an abrupt completion, then
162+
1. If _open_ is an abrupt completion, then
163163
1. Remove _iters_[_k_] from _openIters_.
164-
1. Return ? IteratorCloseAll(_openIters_, _result_).
164+
1. Return ? IteratorCloseAll(_openIters_, _open_).
165+
1. Set _open_ to ! _open_.
165166
1. If _open_ is *false*, then
166167
1. Remove _iters_[_k_] from _openIters_.
167168
1. Else,

0 commit comments

Comments
 (0)