@@ -105734,8 +105734,8 @@ new PaymentRequest(…); // Allowed to use
105734105734
105735105735  <ul>
105736105736   <li><p>A <span>principal realm</span> has a [[HostDefined]] field, which contains <dfn
105737-    data-x="concept-realm-settings-object" export data-lt="settings object" for="realm">the realm's 
105738-    settings object</dfn>.</p></li>
105737+    data-x="concept-realm-settings-object" export data-lt="settings object" for="principal  realm">the
105738+    principal realm's  settings object</dfn>.</p></li>
105739105739
105740105740   <li><p>A <span>principal realm</span> has a <span data-x="concept-realm-global">global
105741105741   object</span>.</p></li>
@@ -105869,7 +105869,7 @@ new PaymentRequest(…); // Allowed to use
105869105869   <span data-x="concept-realm-global">global</span>.</p></li>
105870105870  </ul>
105871105871
105872-   <p>The <dfn data-x="concept-principal-realm-of-realm">principal realm</dfn> of any
105872+   <p>The <dfn data-x="concept-principal-realm-of-realm" for="realm" >principal realm</dfn> of any
105873105873  <span>realm</span> <var>realm</var> is defined by the following algorithm:</p>
105874105874
105875105875  <ol>
@@ -107138,8 +107138,7 @@ document.querySelector("button").addEventListener("click", bound);
107138107138
107139107139     <li><p><span data-x="fetch the descendants of and link a module script">Fetch the descendants of
107140107140     and link</span> <var>result</var> given <var>settingsObject</var>, "<code
107141-      data-x="">script</code>", <var>settings object</var>'s <span
107142-      data-x="environment settings object's realm">realm</span>, and <var>onComplete</var>.</p></li>
107141+      data-x="">script</code>", and <var>onComplete</var>.</p></li>
107143107142    </ol>
107144107143   </li>
107145107144  </ol>
@@ -107372,9 +107371,8 @@ document.querySelector("button").addEventListener("click", bound);
107372107371
107373107372     <li><p><span data-x="fetch the descendants of and link a module script">Fetch the descendants
107374107373     of and link</span> <var>result</var> given <var>fetchClient</var>,
107375-      <var>destination</var>, <var>settingsObject</var>'s
107376-      <span data-x="environment settings object's realm">realm</span>, and <var>onComplete</var>.
107377-      If <var>performFetch</var> was given, pass it along as well.</p></li>
107374+      <var>destination</var>, and <var>onComplete</var>. If <var>performFetch</var> was given, pass
107375+      it along as well.</p></li>
107378107376    </ol>
107379107377   </li>
107380107378  </ol>
@@ -109479,15 +109477,13 @@ dictionary <dfn dictionary>PromiseRejectionEventInit</dfn> : <span>EventInit</sp
109479109477   <li><p>If <var>script</var> is a <span>classic script</span> and <var>script</var>'s <span>muted
109480109478   errors</span> is true, then return.</p></li>
109481109479
109482-    <li><p>Let <var>settingsObject</var> be the <span>current principal settings
109483-    object</span>. <span class="XXX">Should this work for synthetic realms?</span></p></li>
109480+    <li><p>Let <var>realm</var> be the <span>current realm</span>.</p></li>
109484109481
109485-    <li><p>If <var>script</var> is not null, then set <var>settingsObject</var> to
109486-    <var>script</var>'s <span data-x="concept-script-settings-object">settings
109487-    object</span>.</p></li>
109482+    <li><p>If <var>script</var> is not null, then set <var>realm</var> to <var>script</var>'s
109483+    <span data-x="concept-script-realm">realm</span>.</p></li>
109488109484
109489-    <li><p>Let <var>global</var> be <var>settingsObject </var>'s <span 
109490-    data-x="concept-settings-object -global">global object</span>.</p></li>
109485+    <li><p>Let <var>global</var> be <var>realm </var>'s
109486+    <span  data-x="concept-realm -global">global object</span>.</p></li>
109491109487
109492109488   <li>
109493109489    <p>If <var>operation</var> is "<code data-x="">reject</code>", then:</p>
@@ -109744,8 +109740,8 @@ dictionary <dfn dictionary>PromiseRejectionEventInit</dfn> : <span>EventInit</sp
109744109740    <p>If <var>realm</var> is null, either no author code will run or author code is guaranteed to
109745109741    throw. For the former, the author may not have passed in code to run, such as in <code
109746109742    data-x="">promise.then(null, null)</code>. For the latter, it is because a revoked Proxy was
109747-     passed. In both cases, all the steps below that would otherwise use <var>job settings </var>
109748-     get  skipped.</p>
109743+     passed. In both cases, all the steps below that would otherwise use <var>realm </var> get 
109744+     skipped.</p>
109749109745
109750109746    <p class="XXX"><a
109751109747    href="https://tc39.es/ecma262/#sec-newpromiseresolvethenablejob">NewPromiseResolveThenableJob</a>
@@ -109794,8 +109790,7 @@ dictionary <dfn dictionary>PromiseRejectionEventInit</dfn> : <span>EventInit</sp
109794109790   <li>
109795109791    <p>If <var>active script</var> is not null, set <var>script execution context</var> to a new
109796109792    <span>JavaScript execution context</span>, with its Function field set to null, its Realm field
109797-     set to <var>active script</var>'s <span data-x="concept-script-settings-object">settings
109798-     object</span>'s <span data-x="environment settings object's realm">realm</span>, and its
109793+     set to <var>active script</var>'s <span data-x="concept-script-realm">realm</span>, and its
109799109794    ScriptOrModule set to <var>active script</var>'s
109800109795    <span data-x="concept-script-record">record</span>.</p>
109801109796
@@ -110173,8 +110168,7 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
110173110168
110174110169       <li>
110175110170        <p>If the result of running the <span>module type allowed</span> steps given
110176-         <var>moduleType</var> and <var>settingsObject</var>'s <span data-x="environment settings
110177-         object's realm">realm</span> is false, then:</p>
110171+         <var>moduleType</var> and <var>moduleMapRealm</var> is false, then:</p>
110178110172
110179110173        <ol>
110180110174         <li><p>Let <var>completion</var> be <span>Completion Record</span> { [[Type]]: throw,
@@ -110198,10 +110192,6 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
110198110192    </ol>
110199110193   </li>
110200110194
110201-    <li><p>Let <var>settingsObject</var> be <var>moduleMapRealm</var>'s
110202-    <span data-x="concept-principal-realm-of-realm">principal realm</span>'s
110203-    <span data-x="concept-realm-settings-object">settings object</span>.</p></li>
110204- 
110205110195   <li><p><span>Disallow further import maps</span> given <var>moduleMapRealm</var>.</p></li>
110206110196
110207110197   <li><p>Let <var>url</var> be the result of <span data-x="resolve a module specifier">resolving a
@@ -110223,15 +110213,17 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
110223110213    </ol>
110224110214   </li>
110225110215
110216+    <li><p>Let <var>settingsObject</var> be <var>moduleMapRealm</var>'s
110217+    <span data-x="concept-principal-realm-of-realm">principal realm</span>'s
110218+    <span data-x="concept-realm-settings-object">settings object</span>.</p></li>
110219+ 
110226110220   <li><p>Let <var>fetchOptions</var> be the result of <span data-x="get the descendant script
110227110221   fetch options">getting the descendant script fetch options</span> given
110228110222   <var>originalFetchOptions</var>, <var>url</var>, and <var>settingsObject</var>.</p></li>
110229110223
110230110224   <li><p>Let <var>destination</var> be <code data-x="">"script"</code>.</p></li>
110231110225
110232-    <li><p>Let <var>fetchClient</var> be <var>moduleMapRealm</var>'s
110233-    <span data-x="concept-principal-realm-of-realm">principal realm</span>'s
110234-    <span data-x="concept-realm-settings-object">settings object</span>.</p></li>
110226+    <li><p>Let <var>fetchClient</var> be <var>settingsObject</var>.</p></li>
110235110227
110236110228   <li>
110237110229    <p>If <var>loadState</var> is not undefined, then:</p>
0 commit comments