From ea3c573330b79c960fcbc6ff4d0c03dcc8707ddf Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Mon, 4 Nov 2024 13:17:02 +0100 Subject: [PATCH] Restructure HostInitializeShadowRealm --- source | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/source b/source index 620d36919d7..f0c50d53027 100644 --- a/source +++ b/source @@ -3043,7 +3043,6 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • The HostMakeJobCallback abstract operation
  • The HostPromiseRejectionTracker abstract operation
  • The InitializeHostDefinedRealm abstract operation
  • -
  • The SetRealmGlobalObject abstract operation
  • The IsAccessorDescriptor abstract operation
  • The IsCallable abstract operation
  • The IsConstructor abstract operation
  • @@ -3074,6 +3073,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • The SameValue abstract operation
  • The ScriptEvaluation abstract operation
  • The SetDefaultGlobalBindings abstract operation
  • +
  • The NewGlobalEnvironment abstract operation
  • The SetImmutablePrototype abstract operation
  • The ToBoolean abstract operation
  • The ToString abstract operation
  • @@ -111475,7 +111475,14 @@ import "https://example.com/foo/../module2.mjs";
  • Set realm.[[HostDefined]] to settings.

  • -
  • Return globalObject.

  • +
  • Set realm.[[GlobalObject]] to globalObject.

  • + +
  • Set realm.[[GlobalEnv]] to + NewGlobalEnvironment(globalObject, globalObject).

  • + +
  • Perform ? SetDefaultGlobalBindings(realm).

  • + +
  • Return NormalCompletion(unused).

  • The ShadowRealmGlobalScope interface