Skip to content

Commit

Permalink
Editorial: Fix alias use in IteratorBindingInitialization
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 committed Aug 2, 2021
1 parent 99b36f0 commit 4848029
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -9253,16 +9253,16 @@ <h1>Runtime Semantics: IteratorBindingInitialization</h1>
<emu-alg>
1. Let _bindingId_ be StringValue of |BindingIdentifier|.
1. Let _lhs_ be ? ResolveBinding(_bindingId_, _environment_).
1. Let _v_ be *undefined*.
1. If _iteratorRecord_.[[Done]] is *false*, then
1. Let _next_ be IteratorStep(_iteratorRecord_).
1. If _next_ is an abrupt completion, set _iteratorRecord_.[[Done]] to *true*.
1. ReturnIfAbrupt(_next_).
1. If _next_ is *false*, set _iteratorRecord_.[[Done]] to *true*.
1. Else,
1. Let _v_ be IteratorValue(_next_).
1. Set _v_ to IteratorValue(_next_).
1. If _v_ is an abrupt completion, set _iteratorRecord_.[[Done]] to *true*.
1. ReturnIfAbrupt(_v_).
1. If _iteratorRecord_.[[Done]] is *true*, let _v_ be *undefined*.
1. If |Initializer| is present and _v_ is *undefined*, then
1. If IsAnonymousFunctionDefinition(|Initializer|) is *true*, then
1. Set _v_ to the result of performing NamedEvaluation for |Initializer| with argument _bindingId_.
Expand All @@ -9274,16 +9274,16 @@ <h1>Runtime Semantics: IteratorBindingInitialization</h1>
</emu-alg>
<emu-grammar>BindingElement : BindingPattern Initializer?</emu-grammar>
<emu-alg>
1. Let _v_ be *undefined*.
1. If _iteratorRecord_.[[Done]] is *false*, then
1. Let _next_ be IteratorStep(_iteratorRecord_).
1. If _next_ is an abrupt completion, set _iteratorRecord_.[[Done]] to *true*.
1. ReturnIfAbrupt(_next_).
1. If _next_ is *false*, set _iteratorRecord_.[[Done]] to *true*.
1. Else,
1. Let _v_ be IteratorValue(_next_).
1. Set _v_ to IteratorValue(_next_).
1. If _v_ is an abrupt completion, set _iteratorRecord_.[[Done]] to *true*.
1. ReturnIfAbrupt(_v_).
1. If _iteratorRecord_.[[Done]] is *true*, let _v_ be *undefined*.
1. If |Initializer| is present and _v_ is *undefined*, then
1. Let _defaultValue_ be the result of evaluating |Initializer|.
1. Set _v_ to ? GetValue(_defaultValue_).
Expand Down Expand Up @@ -9343,16 +9343,16 @@ <h1>Runtime Semantics: IteratorBindingInitialization</h1>
</emu-alg>
<emu-grammar>ArrowParameters : BindingIdentifier</emu-grammar>
<emu-alg>
1. Let _v_ be *undefined*.
1. Assert: _iteratorRecord_.[[Done]] is *false*.
1. Let _next_ be IteratorStep(_iteratorRecord_).
1. If _next_ is an abrupt completion, set _iteratorRecord_.[[Done]] to *true*.
1. ReturnIfAbrupt(_next_).
1. If _next_ is *false*, set _iteratorRecord_.[[Done]] to *true*.
1. Else,
1. Let _v_ be IteratorValue(_next_).
1. Set _v_ to IteratorValue(_next_).
1. If _v_ is an abrupt completion, set _iteratorRecord_.[[Done]] to *true*.
1. ReturnIfAbrupt(_v_).
1. If _iteratorRecord_.[[Done]] is *true*, let _v_ be *undefined*.
1. Return the result of performing BindingInitialization for |BindingIdentifier| using _v_ and _environment_ as the arguments.
</emu-alg>
<emu-grammar>ArrowParameters : CoverParenthesizedExpressionAndArrowParameterList</emu-grammar>
Expand All @@ -9364,16 +9364,16 @@ <h1>Runtime Semantics: IteratorBindingInitialization</h1>
AsyncArrowBindingIdentifier : BindingIdentifier
</emu-grammar>
<emu-alg>
1. Let _v_ be *undefined*.
1. Assert: _iteratorRecord_.[[Done]] is *false*.
1. Let _next_ be IteratorStep(_iteratorRecord_).
1. If _next_ is an abrupt completion, set _iteratorRecord_.[[Done]] to *true*.
1. ReturnIfAbrupt(_next_).
1. If _next_ is *false*, set _iteratorRecord_.[[Done]] to *true*.
1. Else,
1. Let _v_ be IteratorValue(_next_).
1. Set _v_ to IteratorValue(_next_).
1. If _v_ is an abrupt completion, set _iteratorRecord_.[[Done]] to *true*.
1. ReturnIfAbrupt(_v_).
1. If _iteratorRecord_.[[Done]] is *true*, let _v_ be *undefined*.
1. Return the result of performing BindingInitialization for |BindingIdentifier| using _v_ and _environment_ as the arguments.
</emu-alg>
</emu-clause>
Expand Down

0 comments on commit 4848029

Please sign in to comment.