Skip to content

Commit 856dcee

Browse files
committed
Editorial tweaks
1 parent 3e72cd9 commit 856dcee

File tree

1 file changed

+25
-28
lines changed

1 file changed

+25
-28
lines changed

source

Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -89608,11 +89608,11 @@ dictionary <dfn>PromiseRejectionEventInit</dfn> : <span>EventInit</span> {
8960889608

8960989609
<h5 id="integration-with-javascript-jobs">Job-related host hooks</h5>
8961089610

89611-
<p>The JavaScript specification defines Jobs to be scheduled and run later by the host, as well
89612-
as JobCallback Records which encapsulate JavaScript functions that are called as part of
89613-
jobs. The JavaScript specification contains a number of <span>implementation-defined</span>
89614-
abstract operations that lets the host define how Jobs are scheduled and how JobCallbacks are
89615-
handled. This section defines them for user agent hosts.</p>
89611+
<p>The JavaScript specification defines Jobs to be scheduled and run later by the host, as well as
89612+
<span data-x="JobCallback Record">JobCallback Records</span> which encapsulate JavaScript
89613+
functions that are called as part of jobs. The JavaScript specification contains a number of
89614+
<span>implementation-defined</span> abstract operations that lets the host define how jobs are
89615+
scheduled and how JobCallbacks are handled. This section defines them for user agent hosts.</p>
8961689616

8961789617
<h6 id="hostcalljobcallback"><dfn>HostCallJobCallback</dfn>(<var>callback</var>, <var>V</var>,
8961889618
<var>argumentsList</var>)</h6>
@@ -89626,7 +89626,7 @@ dictionary <dfn>PromiseRejectionEventInit</dfn> : <span>EventInit</span> {
8962689626

8962789627
<ol>
8962889628
<li><p>Let <var>incumbent settings</var> be
89629-
<var>callback</var>.[[HostDefined]].[[IncumbentSettings]]</p></li>
89629+
<var>callback</var>.[[HostDefined]].[[IncumbentSettings]].</p></li>
8963089630

8963189631
<li><p>Let <var>script execution context</var> be
8963289632
<var>callback</var>.[[HostDefined]].[[ActiveScriptContext]].</li>
@@ -89643,21 +89643,18 @@ dictionary <dfn>PromiseRejectionEventInit</dfn> : <span>EventInit</span> {
8964389643
push">push</span> <var>script execution context</var> onto the <span>JavaScript execution
8964489644
context stack</span>.</p>
8964589645

89646-
<p class="note">This affects the <span>active script</span> while the callback
89647-
runs. <span>HostMakeJobCallback</span> saves the appropriate <span>JavaScript execution
89648-
context</span>.</p>
89646+
<p class="note">This affects the <span>active script</span> while the callback runs.</p>
8964989647
</li>
8965089648

89651-
<li>
89652-
<p>Let <var>result</var> be Call(<var>callback</var>.[[Callback]], <var>V</var>, <var>argumentsList</var>).</p>
89653-
</li>
89649+
<li><p>Let <var>result</var> be <span>Call</span>(<var>callback</var>.[[Callback]], <var>V</var>,
89650+
<var>argumentsList</var>).</p></li>
8965489651

8965589652
<li><p>If <var>script execution context</var> is not null, then <span data-x="stack
89656-
pop">pop</span> <var>script execution context</var> from the <span>JavaScript execution context
89657-
stack</span>.</p></li>
89653+
pop">pop</span> <var>script execution context</var> from the <span>JavaScript execution context
89654+
stack</span>.</p></li>
8965889655

8965989656
<li><p><span>Clean up after running a callback</span> with <var>incumbent
89660-
settings</var>.</p></li>
89657+
settings</var>.</p></li>
8966189658

8966289659
<li><p>Return <var>result</var>.</p></li>
8966389660
</ol>
@@ -89713,12 +89710,12 @@ dictionary <dfn>PromiseRejectionEventInit</dfn> : <span>EventInit</span> {
8971389710
<p>Let <var>result</var> be <var>job</var>().</p>
8971489711

8971589712
<p class="note"><var>job</var> is an <span>abstract closure</span> returned by
89716-
<span>NewPromiseReactionJob</span> or <span>NewPromiseResolveThenableJob</span>. The
89717-
promise's handler function when <var>job</var> is returned by
89718-
<span>NewPromiseReactionJob</span>, and the <code data-x="">then</code> function when
89719-
<var>job</var> is returned by <span>NewPromiseResolveThenableJob</span>, are wrapped in
89720-
<span>JobCallback Record</span>s. HTML saves the <span>incumbent settings object</span> and a
89721-
<span>JavaScript execution context</span> for to the <span>active script</span> in
89713+
<span>NewPromiseReactionJob</span> or <span>NewPromiseResolveThenableJob</span>. The promise's
89714+
handler function when <var>job</var> is returned by <span>NewPromiseReactionJob</span>, and
89715+
the <code data-x="">then</code> function when <var>job</var> is returned by
89716+
<span>NewPromiseResolveThenableJob</span>, are wrapped in <span data-x="JobCallback
89717+
Record">JobCallback Records</span>. HTML saves the <span>incumbent settings object</span> and
89718+
a <span>JavaScript execution context</span> for to the <span>active script</span> in
8972289719
<span>HostMakeJobCallback</span> and restores them in <span>HostCallJobCallback</span>.</p>
8972389720
</li>
8972489721

@@ -89737,10 +89734,10 @@ dictionary <dfn>PromiseRejectionEventInit</dfn> : <span>EventInit</span> {
8973789734
data-x="js-HostMakeJobCallback">HostMakeJobCallback</span>(<var>callable</var>) abstract operation
8973889735
to let hosts attach state to JavaScript callbacks that are called from inside <span
8973989736
data-x="concept-task">task</span>s. HTML <span
89740-
id="incumbent-settings-object-tracking-in-promises">tracks incumbent settings object in
89741-
Promises</span> by saving the <span>incumbent settings object</span> and a <span>JavaScript
89742-
execution context</span> for the <span>active script</span>. User agents must use the following
89743-
implementation: <ref spec=JAVASCRIPT></p>
89737+
id="incumbent-settings-object-tracking-in-promises">tracks the <span>incumbent settings
89738+
object</span> in promises</span> by saving the <span>incumbent settings object</span> and a
89739+
<span>JavaScript execution context</span> for the <span>active script</span>. User agents must use
89740+
the following implementation: <ref spec=JAVASCRIPT></p>
8974489741

8974589742
<ol>
8974689743
<li><p>Let <var>incumbent settings</var> be the <span>incumbent settings object</span>.</p></li>
@@ -89795,9 +89792,9 @@ dictionary <dfn>PromiseRejectionEventInit</dfn> : <span>EventInit</span> {
8979589792
</div>
8979689793
</li>
8979789794

89798-
<li><p>Return the JobCallback Record { [[Callback]]: <var>callable</var>, [[HostDefined]]: {
89799-
[[IncumbentSettings]]: <var>incumbent settings</var>, [[ActiveScriptContext]]: <var>script
89800-
execution context</var> } }.</p></li>
89795+
<li><p>Return the <span>JobCallback Record</span> { [[Callback]]: <var>callable</var>,
89796+
[[HostDefined]]: { [[IncumbentSettings]]: <var>incumbent settings</var>, [[ActiveScriptContext]]:
89797+
<var>script execution context</var> } }.</p></li>
8980189798
</ol>
8980289799

8980389800
<h5 id="integration-with-the-javascript-module-system">Module-related host hooks</h5>

0 commit comments

Comments
 (0)