Skip to content

Commit

Permalink
Editorial: Make a 'home' section for Evaluation (tc39#2744)
Browse files Browse the repository at this point in the history
Note: Since Evaluation is now declared to return a Completion Record,
it doesn't need to be special-cased
in the first para of Implicit Normal Completion.
  • Loading branch information
jmdyck committed Jul 31, 2022
1 parent cdbf72e commit a4a6fad
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ <h1>ReturnIfAbrupt Shorthands</h1>

<emu-clause id="sec-implicit-normal-completion" oldids="sec-implicit-completion-values">
<h1>Implicit Normal Completion</h1>
<p>In algorithms within abstract operations which are declared to return a Completion Record, within the Evaluation syntax-directed operation, and within all built-in functions, the returned value is first passed to NormalCompletion, and the result is used instead. This rule does not apply within the Completion algorithm or when the value being returned is clearly marked as a Completion Record in that step; these cases are:</p>
<p>In algorithms within abstract operations which are declared to return a Completion Record, and within all built-in functions, the returned value is first passed to NormalCompletion, and the result is used instead. This rule does not apply within the Completion algorithm or when the value being returned is clearly marked as a Completion Record in that step; these cases are:</p>
<ul>
<li>when the result of applying Completion, NormalCompletion, or ThrowCompletion is directly returned</li>
<li>when the result of constructing a Completion Record is directly returned</li>
Expand Down Expand Up @@ -7225,6 +7225,15 @@ <h1>
<h1>Syntax-Directed Operations</h1>
<p>In addition to those defined in this section, specialized syntax-directed operations are defined throughout this specification.</p>

<emu-clause id="sec-evaluation" type="sdo">
<h1>Runtime Semantics: Evaluation ( ): a Completion Record</h1>
<dl class="header">
</dl>
<emu-note>
The definitions for this operation are distributed over the "ECMAScript Language" sections of this specification. Each definition appears after the defining occurrence of the relevant productions.
</emu-note>
</emu-clause>

<emu-clause id="sec-syntax-directed-operations-scope-analysis">
<h1>Scope Analysis</h1>

Expand Down

0 comments on commit a4a6fad

Please sign in to comment.