diff --git a/source b/source index e39b57abff0..b18d6a43a15 100644 --- a/source +++ b/source @@ -3116,6 +3116,14 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute

User agents that support JavaScript must also implement the BigInt proposal.

+ +

User agents that support JavaScript must also implement the Atomics.waitAsync + proposal. The following term is defined there, and used in this specification:

+ + @@ -89465,6 +89473,22 @@ dictionary PromiseRejectionEventInit : EventInit { +
HostResolveInAgent(agentSignifier, promiseCapability, resolution)
+ +

The Atomics.waitAsync specification relies on the host to trigger the resolution of a Promise in another agent. This specification defines that algorithm as follows:

+ +
    +
  1. Let agent be the agent corresponding to agentSignifier.

  2. +
  3. +

    Queue a task on the Atomics.waitAsync task source in agent's event loop to run the following steps:

    +
      +
    1. Perform ! Call(promiseCapability.[[Resolve]], undefined, « resolution »).
    2. +
    +
  4. +
+ +

The task source for these tasks in this section is the Atomics.waitAsync task source.

+

Event loops

@@ -121967,6 +121991,9 @@ INSERT INTERFACES HERE
[JSON]
The JavaScript Object Notation (JSON) Data Interchange Format, T. Bray. IETF.
+
[JSWAITASYNC]
+
Atomics.waitAsync. Ecma International.
+
[LONGTASKS]
Long Tasks, D. Denicola, I. Grigorik, S. Panicker. W3C.