diff --git a/source b/source index 8f005de1bd1..e117f878d37 100644 --- a/source +++ b/source @@ -89607,11 +89607,11 @@ dictionary PromiseRejectionEventInit : EventInit {
Job-related host hooks
-

The JavaScript specification defines Jobs to be scheduled and run later by the host, as well - as JobCallback Records which encapsulate JavaScript functions that are called as part of - jobs. The JavaScript specification contains a number of implementation-defined - abstract operations that lets the host define how Jobs are scheduled and how JobCallbacks are - handled. This section defines them for user agent hosts.

+

The JavaScript specification defines Jobs to be scheduled and run later by the host, as well as + JobCallback Records which encapsulate JavaScript + functions that are called as part of jobs. The JavaScript specification contains a number of + implementation-defined abstract operations that lets the host define how jobs are + scheduled and how JobCallbacks are handled. This section defines them for user agent hosts.

HostCallJobCallback(callback, V, argumentsList)
@@ -89625,7 +89625,7 @@ dictionary PromiseRejectionEventInit : EventInit {
  1. Let incumbent settings be - callback.[[HostDefined]].[[IncumbentSettings]]

  2. + callback.[[HostDefined]].[[IncumbentSettings]].

  3. Let script execution context be callback.[[HostDefined]].[[ActiveScriptContext]].

  4. @@ -89642,21 +89642,18 @@ dictionary PromiseRejectionEventInit : EventInit { push">push script execution context onto the JavaScript execution context stack.

    -

    This affects the active script while the callback - runs. HostMakeJobCallback saves the appropriate JavaScript execution - context.

    +

    This affects the active script while the callback runs.

    -
  5. -

    Let result be Call(callback.[[Callback]], V, argumentsList).

    -
  6. +
  7. Let result be Call(callback.[[Callback]], V, + argumentsList).

  8. If script execution context is not null, then pop script execution context from the JavaScript execution context - stack.

  9. + pop">pop script execution context from the JavaScript execution context + stack.

  10. Clean up after running a callback with incumbent - settings.

  11. + settings.

  12. Return result.

@@ -89712,12 +89709,12 @@ dictionary PromiseRejectionEventInit : EventInit {

Let result be job().

job is an abstract closure returned by - NewPromiseReactionJob or NewPromiseResolveThenableJob. The - promise's handler function when job is returned by - NewPromiseReactionJob, and the then function when - job is returned by NewPromiseResolveThenableJob, are wrapped in - JobCallback Records. HTML saves the incumbent settings object and a - JavaScript execution context for to the active script in + NewPromiseReactionJob or NewPromiseResolveThenableJob. The promise's + handler function when job is returned by NewPromiseReactionJob, and + the then function when job is returned by + NewPromiseResolveThenableJob, are wrapped in JobCallback Records. HTML saves the incumbent settings object and + a JavaScript execution context for to the active script in HostMakeJobCallback and restores them in HostCallJobCallback.

@@ -89736,10 +89733,10 @@ dictionary PromiseRejectionEventInit : EventInit { data-x="js-HostMakeJobCallback">HostMakeJobCallback(callable) abstract operation to let hosts attach state to JavaScript callbacks that are called from inside tasks. HTML tracks incumbent settings object in - Promises by saving the incumbent settings object and a JavaScript - execution context for the active script. User agents must use the following - implementation:

+ id="incumbent-settings-object-tracking-in-promises">tracks the incumbent settings + object in promises by saving the incumbent settings object and a + JavaScript execution context for the active script. User agents must use + the following implementation:

  1. Let incumbent settings be the incumbent settings object.

  2. @@ -89794,9 +89791,9 @@ dictionary PromiseRejectionEventInit : EventInit { -
  3. Return the JobCallback Record { [[Callback]]: callable, [[HostDefined]]: { - [[IncumbentSettings]]: incumbent settings, [[ActiveScriptContext]]: script - execution context } }.

  4. +
  5. Return the JobCallback Record { [[Callback]]: callable, + [[HostDefined]]: { [[IncumbentSettings]]: incumbent settings, [[ActiveScriptContext]]: + script execution context } }.

Module-related host hooks