Skip to content

Commit 16a2c0b

Browse files
committed
Address ljharb review
1 parent 5d7042e commit 16a2c0b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7756,7 +7756,7 @@ <h1>Jobs and Host Operations to Enqueue Jobs</h1>
77567756
<h1>JobCallback Records</h1>
77577757
<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>
77587758
<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>
77607760
</emu-note>
77617761
<p>JobCallback Records have the fields listed in <emu-xref href="#table-jobcallback-records"></emu-xref>.</p>
77627762
<emu-table id="table-jobcallback-records" caption="JobCallback Record Fields">
@@ -7811,11 +7811,11 @@ <h1>HostMakeJobCallback ( _callable_ )</h1>
78117811
<p>The default implementation of HostMakeJobCallback performs the following steps when called:</p>
78127812
<emu-alg>
78137813
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~ }.
78157815
</emu-alg>
78167816
<p>ECMAScript hosts that are not web browsers must use the default implementation of HostMakeJobCallback.</p>
78177817
<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>
78197819
</emu-note>
78207820
</emu-clause>
78217821

@@ -22683,7 +22683,7 @@ <h1>Script Records</h1>
2268322683
[[HostDefined]]
2268422684
</td>
2268522685
<td>
22686-
Any, default value is *undefined*.
22686+
Any, default value is ~empty~.
2268722687
</td>
2268822688
<td>
2268922689
Field reserved for use by host environments that need to associate additional information with a script.

0 commit comments

Comments
 (0)