You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Eliminate certain wording around execution contexts
Specifically, eliminate wording such as:
- an EC tracks the evaluation/execution of code
- an EC evaluates/executes code
- an EC can wait for an event
- code is 'within' an EC
- code is evaluated within an EC
- control enters an EC
Copy file name to clipboardexpand all lines: spec.html
+11-11
Original file line number
Diff line number
Diff line change
@@ -11574,8 +11574,8 @@ <h1>
11574
11574
11575
11575
<emu-clause id="sec-execution-contexts">
11576
11576
<h1>Execution Contexts</h1>
11577
-
<p>An <dfn variants="execution contexts">execution context</dfn> is a specification device that is used to track the runtime evaluation of code by an ECMAScript implementation. At any point in time, there is at most one execution context per agent that is actually executing code. This is known as the agent's <dfn id="running-execution-context" variants="running execution contexts">running execution context</dfn>. All references to the running execution context in this specification denote the running execution context of the surrounding agent.</p>
11578
-
<p>An execution context contains whatever implementation specific state is necessary to track the execution progress of its associated code. Each execution context has at least the state components listed in <emu-xref href="#table-state-components-for-all-execution-contexts"></emu-xref>.</p>
11577
+
<p>An <dfn variants="execution contexts">execution context</dfn> brings together information that is relevant for the runtime evaluation of some unit of code (e.g., a script, a module, or a function object). At any point in time, there is at most one execution context per agent whose associated code is being evaluated. This is known as the agent's <dfn id="running-execution-context" variants="running execution contexts">running execution context</dfn>. All references to the running execution context in this specification denote the running execution context of the surrounding agent.</p>
11578
+
<p>Each execution context has at least the state components listed in <emu-xref href="#table-state-components-for-all-execution-contexts"></emu-xref>.</p>
11579
11579
<emu-table id="table-state-components-for-all-execution-contexts" caption="State Components for All Execution Contexts" oldids="table-22">
Any state needed to perform, suspend, and resume evaluation of the code associated with this execution context.
11594
+
Determines what happens the next time there is a transfer of control to the execution context.
11595
11595
</td>
11596
11596
</tr>
11597
11597
<tr>
11598
11598
<td>
11599
11599
Function
11600
11600
</td>
11601
11601
<td>
11602
-
If this execution context is evaluating the code of a function object, then the value of this component is that function object. If the context is evaluating the code of a |Script| or |Module|, the value is *null*.
11602
+
If this execution context is established for evaluating a call to a function object, then the value of this component is that function object. If the execution context is established for evaluating a |Script| or |Module|, the value is *null*.
The Generator that this execution context is evaluating.
11680
+
The Generator that is associated with this execution context.
11681
11681
</td>
11682
11682
</tr>
11683
11683
</table>
@@ -12130,7 +12130,7 @@ <h1>Agent Clusters</h1>
12130
12130
<emu-clause id="sec-forward-progress">
12131
12131
<h1>Forward Progress</h1>
12132
12132
<p>For an agent to <em>make forward progress</em> is for it to perform an evaluation step according to this specification.</p>
12133
-
<p>An agent becomes <em>blocked</em> when its running execution context waits synchronously and indefinitely for an external event. Only agents whose Agent Record's [[CanBlock]] field is *true* can become blocked in this sense. An <em>unblocked</em> agent is one that is not blocked.</p>
12133
+
<p>An agent becomes <em>blocked</em> when it waits synchronously and indefinitely for an external event. Only agents whose Agent Record's [[CanBlock]] field is *true* can become blocked in this sense. An <em>unblocked</em> agent is one that is not blocked.</p>
1. Discard all resources associated with the current execution context.
25456
25456
1. Return ~unused~.
25457
25457
</emu-alg>
25458
-
<p>A tail position call must either release any transient internal resources associated with the currently executing function execution context before invoking the target function or reuse those resources in support of the target function.</p>
25458
+
<p>A tail position call must either release any transient internal resources associated with the currently executing function's execution context before invoking the target function or reuse those resources in support of the target function.</p>
25459
25459
<emu-note>
25460
25460
<p>For example, a tail position call should only grow an implementation's activation record stack by the amount that the size of the target function's activation record exceeds the size of the calling function's activation record. If the target function's activation record is smaller, then the total size of the stack should decrease.</p>
Evaluate the module's code within its execution context. If this module has *true* in [[HasTLA]], then a PromiseCapability Record is passed as an argument, and the method is expected to resolve or reject the given capability. In this case, the method must not throw an exception, but instead reject the PromiseCapability Record if necessary.
26174
+
Evaluate the module's code using its execution context. If this module has *true* in [[HasTLA]], then a PromiseCapability Record is passed as an argument, and the method is expected to resolve or reject the given capability. In this case, the method must not throw an exception, but instead reject the PromiseCapability Record if necessary.
26175
26175
</td>
26176
26176
</tr>
26177
26177
</table>
@@ -28554,7 +28554,7 @@ <h1>ECMAScript Standard Built-in Objects</h1>
0 commit comments