From 4fd996070a06e691a2dde56dea329ae1f876e126 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Wed, 25 Sep 2024 16:14:17 +0200 Subject: [PATCH] review --- source | 48 ++++++++++++++++++++---------------------------- 1 file changed, 20 insertions(+), 28 deletions(-) diff --git a/source b/source index 033a9719432..46af8aeea40 100644 --- a/source +++ b/source @@ -105734,8 +105734,8 @@ new PaymentRequest(…); // Allowed to use -

The principal realm of any +

The principal realm of any realm realm is defined by the following algorithm:

    @@ -107138,8 +107138,7 @@ document.querySelector("button").addEventListener("click", bound);
  1. Fetch the descendants of and link result given settingsObject, "script", settings object's realm, and onComplete.

  2. + data-x="">script", and onComplete.

@@ -107372,9 +107371,8 @@ document.querySelector("button").addEventListener("click", bound);
  • Fetch the descendants of and link result given fetchClient, - destination, settingsObject's - realm, and onComplete. - If performFetch was given, pass it along as well.

  • + destination, and onComplete. If performFetch was given, pass + it along as well.

    @@ -109479,15 +109477,13 @@ dictionary PromiseRejectionEventInit : EventInit

    If script is a classic script and script's muted errors is true, then return.

    -
  • Let settingsObject be the current principal settings - object. Should this work for synthetic realms?

  • +
  • Let realm be the current realm.

  • -
  • If script is not null, then set settingsObject to - script's settings - object.

  • +
  • If script is not null, then set realm to script's + realm.

  • -
  • Let global be settingsObject's global object.

  • +
  • Let global be realm's + global object.

  • If operation is "reject", then:

    @@ -109744,8 +109740,8 @@ dictionary PromiseRejectionEventInit : EventInitIf realm is null, either no author code will run or author code is guaranteed to throw. For the former, the author may not have passed in code to run, such as in promise.then(null, null). For the latter, it is because a revoked Proxy was - passed. In both cases, all the steps below that would otherwise use job settings - get skipped.

    + passed. In both cases, all the steps below that would otherwise use realm get + skipped.

    NewPromiseResolveThenableJob @@ -109794,8 +109790,7 @@ dictionary PromiseRejectionEventInit : EventInit

    If active script is not null, set script execution context to a new JavaScript execution context, with its Function field set to null, its Realm field - set to active script's settings - object's realm, and its + set to active script's realm, and its ScriptOrModule set to active script's record.

    @@ -110173,8 +110168,7 @@ import "https://example.com/foo/../module2.mjs";
  • If the result of running the module type allowed steps given - moduleType and settingsObject's realm is false, then:

    + moduleType and moduleMapRealm is false, then:

    1. Let completion be Completion Record { [[Type]]: throw, @@ -110198,10 +110192,6 @@ import "https://example.com/foo/../module2.mjs";

  • -
  • Let settingsObject be moduleMapRealm's - principal realm's - settings object.

  • -
  • Disallow further import maps given moduleMapRealm.

  • Let url be the result of resolving a @@ -110223,15 +110213,17 @@ import "https://example.com/foo/../module2.mjs";

  • +
  • Let settingsObject be moduleMapRealm's + principal realm's + settings object.

  • +
  • Let fetchOptions be the result of getting the descendant script fetch options given originalFetchOptions, url, and settingsObject.

  • Let destination be "script".

  • -
  • Let fetchClient be moduleMapRealm's - principal realm's - settings object.

  • +
  • Let fetchClient be settingsObject.

  • If loadState is not undefined, then: