Skip to content

Commit

Permalink
Address domenic review
Browse files Browse the repository at this point in the history
  • Loading branch information
syg committed Mar 12, 2021
1 parent f7041ef commit cb0f44e
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -90009,16 +90009,20 @@ dictionary <dfn>PromiseRejectionEventInit</dfn> : <span>EventInit</span> {
<span data-x="JobCallback Record">JobCallback Records</span> which encapsulate JavaScript
functions that are called as part of jobs. The JavaScript specification contains a number of
<span>implementation-defined</span> abstract operations that lets the host define how jobs are
scheduled and how JobCallbacks are handled. This section defines them for user agent hosts.</p>
scheduled and how JobCallbacks are handled. HTML uses these abstract operations to <span
id="incumbent-settings-object-tracking-in-promises">track the <span>incumbent settings
object</span> in promises and <code>FinalizationRegistry</code> callbacks</span> by saving and
restoring the <span>incumbent settings object</span> and a <span>JavaScript execution
context</span> for the <span>active script</span> in JobCallbacks. This section defines them for
user agent hosts.</p>

<h6 id="hostcalljobcallback"><dfn>HostCallJobCallback</dfn>(<var>callback</var>, <var>V</var>,
<var>argumentsList</var>)</h6>

<p>JavaScript contains an <span>implementation-defined</span> <span
data-x="js-HostCallJobCallback">HostCallJobCallback</span>(<var>callback</var>, <var>V</var>,
<var>argumentsList</var>) abstract operation to let hosts restore state when invoking JavaScript
callbacks from inside tasks. HTML restores the <span>incumbent settings object</span> and the
<span>active script</span>. User agents must use the following implementation: <ref
callbacks from inside tasks. User agents must use the following implementation: <ref
spec=JAVASCRIPT></p>

<ol>
Expand Down Expand Up @@ -90072,8 +90076,7 @@ dictionary <dfn>PromiseRejectionEventInit</dfn> : <span>EventInit</span> {
are well-known cases in popular web browsers where objects are not accessible to JavaScript, but
they remain retained by the garbage collector indefinitely. HTML clears kept-alive
<code>WeakRef</code> objects in the <span>perform a microtask checkpoint</span> algorithm. Authors
<!--non-normative-->should not depend on the timing details of garbage collection
implementations.</p>
would be best off not depending on the timing details of garbage collection implementations.</p>

<p>Cleanup actions do not take place interspersed with synchronous JavaScript execution, but
rather happen in queued <span data-x="concept-task">tasks</span>. User agents must use the
Expand Down Expand Up @@ -90197,11 +90200,7 @@ dictionary <dfn>PromiseRejectionEventInit</dfn> : <span>EventInit</span> {
<p>JavaScript contains an <span>implementation-defined</span> <span
data-x="js-HostMakeJobCallback">HostMakeJobCallback</span>(<var>callable</var>) abstract operation
to let hosts attach state to JavaScript callbacks that are called from inside <span
data-x="concept-task">task</span>s. HTML <span
id="incumbent-settings-object-tracking-in-promises">tracks the <span>incumbent settings
object</span> in promises and <code>FinalizationRegistry</code> callbacks</span> by saving the
<span>incumbent settings object</span> and a <span>JavaScript execution context</span> for the
<span>active script</span>. User agents must use the following implementation: <ref
data-x="concept-task">task</span>s. User agents must use the following implementation: <ref
spec=JAVASCRIPT></p>

<ol>
Expand Down

0 comments on commit cb0f44e

Please sign in to comment.