Skip to content

Commit

Permalink
Editorial: remove some unused variables in algorithms (#2901)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkot authored and ljharb committed Nov 2, 2022
1 parent 4d816ec commit d24f397
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -21258,12 +21258,12 @@ <h1>Static Semantics: Early Errors</h1>
<h1>Runtime Semantics: Evaluation</h1>
<emu-grammar>LexicalDeclaration : LetOrConst BindingList `;`</emu-grammar>
<emu-alg>
1. Let _next_ be ? Evaluation of |BindingList|.
1. Perform ? Evaluation of |BindingList|.
1. Return ~empty~.
</emu-alg>
<emu-grammar>BindingList : BindingList `,` LexicalBinding</emu-grammar>
<emu-alg>
1. Let _next_ be ? Evaluation of |BindingList|.
1. Perform ? Evaluation of |BindingList|.
1. Return ? Evaluation of |LexicalBinding|.
</emu-alg>
<emu-grammar>LexicalBinding : BindingIdentifier</emu-grammar>
Expand Down Expand Up @@ -21320,12 +21320,12 @@ <h2>Syntax</h2>
<h1>Runtime Semantics: Evaluation</h1>
<emu-grammar>VariableStatement : `var` VariableDeclarationList `;`</emu-grammar>
<emu-alg>
1. Let _next_ be ? Evaluation of |VariableDeclarationList|.
1. Perform ? Evaluation of |VariableDeclarationList|.
1. Return ~empty~.
</emu-alg>
<emu-grammar>VariableDeclarationList : VariableDeclarationList `,` VariableDeclaration</emu-grammar>
<emu-alg>
1. Let _next_ be ? Evaluation of |VariableDeclarationList|.
1. Perform ? Evaluation of |VariableDeclarationList|.
1. Return ? Evaluation of |VariableDeclaration|.
</emu-alg>
<emu-grammar>VariableDeclaration : BindingIdentifier</emu-grammar>
Expand Down Expand Up @@ -21793,7 +21793,7 @@ <h1>
</emu-alg>
<emu-grammar>ForStatement : `for` `(` `var` VariableDeclarationList `;` Expression? `;` Expression? `)` Statement</emu-grammar>
<emu-alg>
1. Let _varDcl_ be ? Evaluation of |VariableDeclarationList|.
1. Perform ? Evaluation of |VariableDeclarationList|.
1. If the first |Expression| is present, let _test_ be the first |Expression|; otherwise, let _test_ be ~empty~.
1. If the second |Expression| is present, let _increment_ be the second |Expression|; otherwise, let _increment_ be ~empty~.
1. Return ? ForBodyEvaluation(_test_, _increment_, |Statement|, &laquo; &raquo;, _labelSet_).
Expand Down

0 comments on commit d24f397

Please sign in to comment.