From df5706b2a31252dc768de8956d4a9439c9073216 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Tue, 8 Oct 2024 17:48:01 +0200 Subject: [PATCH] review --- source | 42 +++++++++++++++++------------------------- 1 file changed, 17 insertions(+), 25 deletions(-) diff --git a/source b/source index 029e7213a39..4aa64c3d3dd 100644 --- a/source +++ b/source @@ -110267,19 +110267,6 @@ import "https://example.com/foo/../module2.mjs"; -
The ShadowRealmGlobalScope interface
- -

Move this!

- -
[Global]
-interface ShadowRealmGlobalScope : EventTarget {
-  readonly attribute ShadowRealmGlobalScope self;
-};
- -

The self getter steps are to return - this.

-
HostInitializeShadowRealm(realm, context)

JavaScript contains an implementation-defined ShadowRealmGlobalScope : EventTarget

  • Let globalObject be a new ShadowRealmGlobalScope object with realm.

  • -
  • Perform SetRealmGlobalObject(realm, - globalObject, undefined). (Should this use - InitializeHostDefinedRealm?)

  • - -
  • Perform ? SetDefaultGlobalBindings(realm).

  • -
  • Let settings be a new synthetic realm settings object that this algorithm will subsequently initialize.

  • @@ -110320,10 +110300,21 @@ interface ShadowRealmGlobalScope : EventTarget
  • Set realm.[[HostDefined]] to settings.

  • -
  • Return unused.

  • +
  • Return globalObject.

  • - +
    The ShadowRealmGlobalScope interface
    + +
    [Global]
    +interface ShadowRealmGlobalScope : EventTarget {
    +  readonly attribute ShadowRealmGlobalScope self;
    +};
    + +

    The self getter steps are to return + this.

    + +

    Event loops

    @@ -112775,9 +112766,10 @@ interface mixin WindowEventHandlers { // structured cloning any structuredClone(any value, optional StructuredSerializeOptions options = {}); }; -Window includes WindowOrWorkerGlobalScope; -WorkerGlobalScope includes WindowOrWorkerGlobalScope; -ShadowRealmGlobalScope includes WindowOrWorkerGlobalScope; +Window includes UniversalGlobalScope; +WorkerGlobalScope includes UniversalGlobalScope; +ShadowRealmGlobalScope includes UniversalGlobalScope; +WorkletGlobalScope includes UniversalGlobalScope;

    Base64 utility methods