diff --git a/source b/source index 5778311ed26..447e0b24a61 100644 --- a/source +++ b/source @@ -3046,6 +3046,14 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • The HostGetImportMetaProperties abstract operation
  • +

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

    + + +

    Users agents that support JavaScript must also implement ECMAScript Internationalization API.

    @@ -92107,6 +92115,113 @@ dictionary PromiseRejectionEventInit : EventInit { +
    HostInitializeUserRealm(realm)
    + +

    JavaScript contains an implementation-defined HostInitializeUserRealm(realm) abstract + operation. User agents must use the following implementation: + + +

      + +
    1. Let parent settings object be the current settings object.

    2. + +
    3. Let module map be a new module map, initially empty.

    4. + +
    5. +

      Let settings object be a new environment settings object whose + algorithms are defined as follows:

      + +
      + +
      The realm execution context
      +
      + +

      Return realm.[[ExecutionContext]].

      + +
      + +
      The module map
      +
      + +

      Return module map.

      + +
      + +
      The responsible browsing context
      +
      + +

      Return parent settings object's responsible browsing context.

      + +
      + +
      The responsible event loop
      +
      + +

      Return parent settings object's responsible event loop.

      + +
      + +
      The responsible document
      +
      + +

      Return parent settings object's responsible document.

      + +
      + +
      The API URL character encoding
      +
      + +

      Return parent settings object's API URL character encoding.

      + +
      + +
      The API base URL
      +
      + +

      Return parent settings object's API base URL.

      + +
      + +
      The origin
      +
      + +

      Return parent settings object's origin.

      + +
      + +
      The HTTPS state
      +
      + +

      Return parent settings object's HTTPS state.

      + +
      + +
      The referrer policy
      +
      + +

      Return parent settings object's referrer policy.

      + +
      + +
      +
    6. + +
    7. Set settings object's id to a new + unique opaque string, settings object's creation URL to parent settings + object's creation URL, settings + object's target browsing + context to parent settings object's target browsing context, and + settings object's active + service worker to parent settings object's active service worker.

    8. + +
    9. Set realm's [[HostDefined]] field to settings object.

    10. + +
    +

    Event loops

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