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
Copy file name to clipboardExpand all lines: spec.html
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -7756,7 +7756,7 @@ <h1>Jobs and Host Operations to Enqueue Jobs</h1>
7756
7756
<h1>JobCallback Records</h1>
7757
7757
<p>The JobCallback is a Record value used to store a callable object and a host-defined value. Callable objects that are invoked via a Job enqueued by the host may have additional host-defined context. To propagate the state, Job Abstract Closures should not capture and call callable objects directly. Instead, use HostMakeJobCallback and HostCallJobCallback (or its convenience wrapper CallJobCallback).</p>
7758
7758
<emu-note>
7759
-
<p>For example, WHATWG HTML uses the host-defined value to propagate the incumbent settings object for Promise callbacks.</p>
7759
+
<p>The WHATWG HTML specification (<a href="https://html.spec.whatwg.org/">https://html.spec.whatwg.org/</a>), for example, uses the host-defined value to propagate the incumbent settings object for Promise callbacks.</p>
7760
7760
</emu-note>
7761
7761
<p>JobCallback Records have the fields listed in <emu-xref href="#table-jobcallback-records"></emu-xref>.</p>
7762
7762
<emu-table id="table-jobcallback-records" caption="JobCallback Record Fields">
<p>The default implementation of HostMakeJobCallback performs the following steps when called:</p>
7812
7812
<emu-alg>
7813
7813
1. Assert: IsCallable(_callable_) is *true*.
7814
-
1. Return the JobCallback Record { [[Callback]]: _callable_, [[HostDefined]]: *undefined* }.
7814
+
1. Return the JobCallback Record { [[Callback]]: _callable_, [[HostDefined]]: ~empty~ }.
7815
7815
</emu-alg>
7816
7816
<p>ECMAScript hosts that are not web browsers must use the default implementation of HostMakeJobCallback.</p>
7817
7817
<emu-note>
7818
-
<p>This is called at the time that the callback is passed to the function that is responsible for its being eventually scheduled and run. For example, `Promise.prototype.then(thenAction)` calls MakeJobCallback on `thenAction` at the time of invoking `Promise.prototype.then`, not at the time of scheduling the reaction Job.</p>
7818
+
<p>This is called at the time that the callback is passed to the function that is responsible for its being eventually scheduled and run. For example, `promise.then(thenAction)` calls MakeJobCallback on `thenAction` at the time of invoking `Promise.prototype.then`, not at the time of scheduling the reaction Job.</p>
7819
7819
</emu-note>
7820
7820
</emu-clause>
7821
7821
@@ -22683,7 +22683,7 @@ <h1>Script Records</h1>
22683
22683
[[HostDefined]]
22684
22684
</td>
22685
22685
<td>
22686
-
Any, default value is *undefined*.
22686
+
Any, default value is ~empty~.
22687
22687
</td>
22688
22688
<td>
22689
22689
Field reserved for use by host environments that need to associate additional information with a script.
0 commit comments