@@ -105734,8 +105734,8 @@ new PaymentRequest(…); // Allowed to use
105734
105734
105735
105735
<ul>
105736
105736
<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>
105739
105739
105740
105740
<li><p>A <span>principal realm</span> has a <span data-x="concept-realm-global">global
105741
105741
object</span>.</p></li>
@@ -105869,7 +105869,7 @@ new PaymentRequest(…); // Allowed to use
105869
105869
<span data-x="concept-realm-global">global</span>.</p></li>
105870
105870
</ul>
105871
105871
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
105873
105873
<span>realm</span> <var>realm</var> is defined by the following algorithm:</p>
105874
105874
105875
105875
<ol>
@@ -107138,8 +107138,7 @@ document.querySelector("button").addEventListener("click", bound);
107138
107138
107139
107139
<li><p><span data-x="fetch the descendants of and link a module script">Fetch the descendants of
107140
107140
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>
107143
107142
</ol>
107144
107143
</li>
107145
107144
</ol>
@@ -107372,9 +107371,8 @@ document.querySelector("button").addEventListener("click", bound);
107372
107371
107373
107372
<li><p><span data-x="fetch the descendants of and link a module script">Fetch the descendants
107374
107373
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>
107378
107376
</ol>
107379
107377
</li>
107380
107378
</ol>
@@ -109479,15 +109477,13 @@ dictionary <dfn dictionary>PromiseRejectionEventInit</dfn> : <span>EventInit</sp
109479
109477
<li><p>If <var>script</var> is a <span>classic script</span> and <var>script</var>'s <span>muted
109480
109478
errors</span> is true, then return.</p></li>
109481
109479
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>
109484
109481
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>
109488
109484
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>
109491
109487
109492
109488
<li>
109493
109489
<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
109744
109740
<p>If <var>realm</var> is null, either no author code will run or author code is guaranteed to
109745
109741
throw. For the former, the author may not have passed in code to run, such as in <code
109746
109742
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>
109749
109745
109750
109746
<p class="XXX"><a
109751
109747
href="https://tc39.es/ecma262/#sec-newpromiseresolvethenablejob">NewPromiseResolveThenableJob</a>
@@ -109794,8 +109790,7 @@ dictionary <dfn dictionary>PromiseRejectionEventInit</dfn> : <span>EventInit</sp
109794
109790
<li>
109795
109791
<p>If <var>active script</var> is not null, set <var>script execution context</var> to a new
109796
109792
<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
109799
109794
ScriptOrModule set to <var>active script</var>'s
109800
109795
<span data-x="concept-script-record">record</span>.</p>
109801
109796
@@ -110173,8 +110168,7 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
110173
110168
110174
110169
<li>
110175
110170
<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>
110178
110172
110179
110173
<ol>
110180
110174
<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>
110198
110192
</ol>
110199
110193
</li>
110200
110194
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
-
110205
110195
<li><p><span>Disallow further import maps</span> given <var>moduleMapRealm</var>.</p></li>
110206
110196
110207
110197
<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>
110223
110213
</ol>
110224
110214
</li>
110225
110215
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
+
110226
110220
<li><p>Let <var>fetchOptions</var> be the result of <span data-x="get the descendant script
110227
110221
fetch options">getting the descendant script fetch options</span> given
110228
110222
<var>originalFetchOptions</var>, <var>url</var>, and <var>settingsObject</var>.</p></li>
110229
110223
110230
110224
<li><p>Let <var>destination</var> be <code data-x="">"script"</code>.</p></li>
110231
110225
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>
110235
110227
110236
110228
<li>
110237
110229
<p>If <var>loadState</var> is not undefined, then:</p>
0 commit comments