Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make name match for recursive calls to IfClauseToConditions #83

Merged
merged 2 commits into from
Jul 17, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -383,11 +383,11 @@ <h1>Static Semantics: Early Errors</h1>
</ul>
</emu-clause>

<emu-clause id="sec-if-clause-to-object" aoid="IfClauseToConditions">
<emu-clause id="sec-if-clause-to-conditions" aoid="IfClauseToConditions">
<h1>Runtime Semantics: IfClauseToConditions</h1>
<emu-grammar>IfClause : `if` `{` ConditionEntries `,`? `}`</emu-grammar>
<emu-alg>
1. Let _conditions_ be IfEntriesToConditions of |ConditionEntries|.
1. Let _conditions_ be IfClauseToConditions of |ConditionEntries|.
1. Sort _conditions_ by the code point order of the [[Key]] of each entry. NOTE: This sorting is observable only in that hosts are prohibited from distinguishing among conditions by the order they occur in.
1. Return _conditions_.
</emu-alg>
Expand All @@ -401,7 +401,7 @@ <h1>Runtime Semantics: IfClauseToConditions</h1>
<emu-grammar> ConditionEntries : IdentifierName `:` StringLiteral `,` ConditionEntries </emu-grammar>
<emu-alg>
1. Let _entry_ be a Record { [[Key]]: StringValue of |IdentifierName|, [[Value]]: StringValue of |StringLiteral| }.
1. Let _rest_ be IfEntriesToConditions of |ConditionEntries|.
1. Let _rest_ be IfClauseToConditions of |ConditionEntries|.
1. Return a new List containing _entry_ followed by the entries of _rest_.
</emu-alg>
</emu-clause>
Expand Down Expand Up @@ -629,7 +629,7 @@ <h1>Static Semantics: ModuleRequests</h1>
</emu-grammar>
<emu-alg>
1. <ins>Let _specifier_ be StringValue of the |StringLiteral| contained in |FromClause|.</ins>
1. <ins>Let _conditions_ be IfClauseToObject of |IfClause|.</ins>
1. <ins>Let _conditions_ be IfClauseToConditions of |IfClause|.</ins>
1. <ins>Return a ModuleRequest Record { [[Specifer]]: _specifier_, [[Conditions]]: _conditions_ }.</ins>
</emu-alg>
<emu-grammar>
Expand Down