diff --git a/source b/source index a65eae126d1..2fe1cb54d3c 100644 --- a/source +++ b/source @@ -3117,7 +3117,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • The HostLoadImportedModule abstract operation
  • The HostMakeJobCallback abstract operation
  • The HostPromiseRejectionTracker abstract operation
  • -
  • The InitializeHostDefinedRealm abstract operation
  • +
  • The MakeRealm abstract operation
  • The IsArrayBufferViewOutOfBounds abstract operation
  • The IsAccessorDescriptor abstract operation
  • The IsCallable abstract operation
  • @@ -104473,17 +104473,21 @@ interface NotRestoredReasons { origin, group, and false.

  • -

    Let realm execution context be the result of creating a new realm - given agent and the following customizations:

    +

    Let customizations be the following algorithm given a realm realm:

    - +
  • Let globalThisBinding be browsingContext's WindowProxy + object.
  • + +
  • Return « global, globalThisBinding ».
  • + +
  • Let realm execution context be the result of creating a new realm + given agent and customizations.

  • +
  • Let topLevelCreationURL be about:blank if embedder is null; otherwise embedder's relevant settings object's top-level creation URL.

  • @@ -111268,17 +111272,21 @@ location.href = '#foo'; requestsOAC.

  • -

    Let realmExecutionContext be the result of creating a new realm - given agent and the following customizations:

    +

    Let customizations be the following algorithm given a realm realm:

    - +
  • Let globalThisBinding be browsingContext's WindowProxy + object.
  • + +
  • Return « global, globalThisBinding ».
  • + +
  • Let realmExecutionContext be the result of creating a new realm + given agent and customizations.

  • +
  • Set window to the global object of realmExecutionContext's Realm component.

  • @@ -115430,24 +115438,12 @@ new PaymentRequest(…); // Allowed to use

    To create a new - realm in an agent agent, optionally with instructions to create a - global object or a global this binding (or both), the following steps are taken:

    + realm in an agent agent, with a customizations algorithm + customizations:

      -
    1. Perform InitializeHostDefinedRealm() - with the provided customizations for creating the global object and the global this - binding.

    2. - -
    3. -

      Let realm execution context be the running JavaScript execution - context.

      - -

      This is the JavaScript execution context created in the previous - step.

      -
    4. - -
    5. Remove realm execution context from the JavaScript execution context - stack.

    6. +
    7. Let realm execution context be MakeRealm(customizations).

    8. Let realm be realm execution context's Realm component.

    9. @@ -130657,16 +130653,18 @@ interface SharedWorkerGlobalScope : WorkerGlobalScope is shared. Run the rest of these steps in that agent.

    10. -

      Let realm execution context be the result of creating a new realm - given agent and the following customizations:

      +

      Let customizations be the following algorithm given a realm realm:

      -
        -
      • For the global object, if is shared is true, create a new - SharedWorkerGlobalScope object. Otherwise, create a new - DedicatedWorkerGlobalScope object.

      • -
      +
        +
      1. Let global be a new SharedWorkerGlobalScope object if is shared is true; otherwise a new DedicatedWorkerGlobalScope object.
      2. + +
      3. Return « global, undefined ».
      4. +
    11. +
    12. Let realm execution context be the result of creating a new realm + given agent and customizations.

    13. +
    14. Let worker global scope be the global object of realm execution context's Realm component. @@ -132229,15 +132227,19 @@ interface WorkletGlobalScope {}; agent.

    15. -

      Let realmExecutionContext be the result of creating a new realm given - agent and the following customizations:

      +

      Let customizations be the following algorithm given a realm realm:

      -
        -
      • For the global object, create a new object of the type given by worklet's - worklet global scope type.

      • -
      +
        +
      1. Let global be a new object of the type given by worklet's + worklet global scope type.
      2. + +
      3. Return « global, undefined ».
      4. +
    16. +
    17. Let realmExecutionContext be the result of creating a new realm + given agent and customizations.

    18. +
    19. Let workletGlobalScope be the global object of realmExecutionContext's Realm component.