From e81af55e3877474ec443cdb597f38706718c9aea Mon Sep 17 00:00:00 2001
From: Domenic Denicola 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. Let incumbent settings be
- callback.[[HostDefined]].[[IncumbentSettings]]Job-related host hooks
- HostCallJobCallback(callback, V,
argumentsList)
@@ -89625,7 +89625,7 @@ dictionary PromiseRejectionEventInit : EventInit {
Let script execution context be callback.[[HostDefined]].[[ActiveScriptContext]].
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.
-Let result be Call(callback.[[Callback]], V, argumentsList).
-Let result be Call(callback.[[Callback]], V, + argumentsList).
If script execution context is not null, then pop script execution context from the JavaScript execution context - stack.
Clean up after running a callback with incumbent - settings.
Return result.
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.
Let incumbent settings be the incumbent settings object.
Return the JobCallback Record { [[Callback]]: callable, [[HostDefined]]: { - [[IncumbentSettings]]: incumbent settings, [[ActiveScriptContext]]: script - execution context } }.
Return the JobCallback Record { [[Callback]]: callable, + [[HostDefined]]: { [[IncumbentSettings]]: incumbent settings, [[ActiveScriptContext]]: + script execution context } }.