Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger committed Sep 25, 2024
1 parent d5724da commit 4fd9960
Showing 1 changed file with 20 additions and 28 deletions.
48 changes: 20 additions & 28 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -105734,8 +105734,8 @@ new PaymentRequest(…); // Allowed to use

<ul>
<li><p>A <span>principal realm</span> has a [[HostDefined]] field, which contains <dfn
data-x="concept-realm-settings-object" export data-lt="settings object" for="realm">the realm's
settings object</dfn>.</p></li>
data-x="concept-realm-settings-object" export data-lt="settings object" for="principal realm">the
principal realm's settings object</dfn>.</p></li>

<li><p>A <span>principal realm</span> has a <span data-x="concept-realm-global">global
object</span>.</p></li>
Expand Down Expand Up @@ -105869,7 +105869,7 @@ new PaymentRequest(&hellip;); // Allowed to use
<span data-x="concept-realm-global">global</span>.</p></li>
</ul>

<p>The <dfn data-x="concept-principal-realm-of-realm">principal realm</dfn> of any
<p>The <dfn data-x="concept-principal-realm-of-realm" for="realm">principal realm</dfn> of any
<span>realm</span> <var>realm</var> is defined by the following algorithm:</p>

<ol>
Expand Down Expand Up @@ -107138,8 +107138,7 @@ document.querySelector("button").addEventListener("click", bound);

<li><p><span data-x="fetch the descendants of and link a module script">Fetch the descendants of
and link</span> <var>result</var> given <var>settingsObject</var>, "<code
data-x="">script</code>", <var>settings object</var>'s <span
data-x="environment settings object's realm">realm</span>, and <var>onComplete</var>.</p></li>
data-x="">script</code>", and <var>onComplete</var>.</p></li>
</ol>
</li>
</ol>
Expand Down Expand Up @@ -107372,9 +107371,8 @@ document.querySelector("button").addEventListener("click", bound);

<li><p><span data-x="fetch the descendants of and link a module script">Fetch the descendants
of and link</span> <var>result</var> given <var>fetchClient</var>,
<var>destination</var>, <var>settingsObject</var>'s
<span data-x="environment settings object's realm">realm</span>, and <var>onComplete</var>.
If <var>performFetch</var> was given, pass it along as well.</p></li>
<var>destination</var>, and <var>onComplete</var>. If <var>performFetch</var> was given, pass
it along as well.</p></li>
</ol>
</li>
</ol>
Expand Down Expand Up @@ -109479,15 +109477,13 @@ dictionary <dfn dictionary>PromiseRejectionEventInit</dfn> : <span>EventInit</sp
<li><p>If <var>script</var> is a <span>classic script</span> and <var>script</var>'s <span>muted
errors</span> is true, then return.</p></li>

<li><p>Let <var>settingsObject</var> be the <span>current principal settings
object</span>. <span class="XXX">Should this work for synthetic realms?</span></p></li>
<li><p>Let <var>realm</var> be the <span>current realm</span>.</p></li>

<li><p>If <var>script</var> is not null, then set <var>settingsObject</var> to
<var>script</var>'s <span data-x="concept-script-settings-object">settings
object</span>.</p></li>
<li><p>If <var>script</var> is not null, then set <var>realm</var> to <var>script</var>'s
<span data-x="concept-script-realm">realm</span>.</p></li>

<li><p>Let <var>global</var> be <var>settingsObject</var>'s <span
data-x="concept-settings-object-global">global object</span>.</p></li>
<li><p>Let <var>global</var> be <var>realm</var>'s
<span data-x="concept-realm-global">global object</span>.</p></li>

<li>
<p>If <var>operation</var> is "<code data-x="">reject</code>", then:</p>
Expand Down Expand Up @@ -109744,8 +109740,8 @@ dictionary <dfn dictionary>PromiseRejectionEventInit</dfn> : <span>EventInit</sp
<p>If <var>realm</var> 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 <code
data-x="">promise.then(null, null)</code>. For the latter, it is because a revoked Proxy was
passed. In both cases, all the steps below that would otherwise use <var>job settings</var>
get skipped.</p>
passed. In both cases, all the steps below that would otherwise use <var>realm</var> get
skipped.</p>

<p class="XXX"><a
href="https://tc39.es/ecma262/#sec-newpromiseresolvethenablejob">NewPromiseResolveThenableJob</a>
Expand Down Expand Up @@ -109794,8 +109790,7 @@ dictionary <dfn dictionary>PromiseRejectionEventInit</dfn> : <span>EventInit</sp
<li>
<p>If <var>active script</var> is not null, set <var>script execution context</var> to a new
<span>JavaScript execution context</span>, with its Function field set to null, its Realm field
set to <var>active script</var>'s <span data-x="concept-script-settings-object">settings
object</span>'s <span data-x="environment settings object's realm">realm</span>, and its
set to <var>active script</var>'s <span data-x="concept-script-realm">realm</span>, and its
ScriptOrModule set to <var>active script</var>'s
<span data-x="concept-script-record">record</span>.</p>

Expand Down Expand Up @@ -110173,8 +110168,7 @@ import "https://example.com/foo/../module2.mjs";</code></pre>

<li>
<p>If the result of running the <span>module type allowed</span> steps given
<var>moduleType</var> and <var>settingsObject</var>'s <span data-x="environment settings
object's realm">realm</span> is false, then:</p>
<var>moduleType</var> and <var>moduleMapRealm</var> is false, then:</p>

<ol>
<li><p>Let <var>completion</var> be <span>Completion Record</span> { [[Type]]: throw,
Expand All @@ -110198,10 +110192,6 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
</ol>
</li>

<li><p>Let <var>settingsObject</var> be <var>moduleMapRealm</var>'s
<span data-x="concept-principal-realm-of-realm">principal realm</span>'s
<span data-x="concept-realm-settings-object">settings object</span>.</p></li>

<li><p><span>Disallow further import maps</span> given <var>moduleMapRealm</var>.</p></li>

<li><p>Let <var>url</var> be the result of <span data-x="resolve a module specifier">resolving a
Expand All @@ -110223,15 +110213,17 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
</ol>
</li>

<li><p>Let <var>settingsObject</var> be <var>moduleMapRealm</var>'s
<span data-x="concept-principal-realm-of-realm">principal realm</span>'s
<span data-x="concept-realm-settings-object">settings object</span>.</p></li>

<li><p>Let <var>fetchOptions</var> be the result of <span data-x="get the descendant script
fetch options">getting the descendant script fetch options</span> given
<var>originalFetchOptions</var>, <var>url</var>, and <var>settingsObject</var>.</p></li>

<li><p>Let <var>destination</var> be <code data-x="">"script"</code>.</p></li>

<li><p>Let <var>fetchClient</var> be <var>moduleMapRealm</var>'s
<span data-x="concept-principal-realm-of-realm">principal realm</span>'s
<span data-x="concept-realm-settings-object">settings object</span>.</p></li>
<li><p>Let <var>fetchClient</var> be <var>settingsObject</var>.</p></li>

<li>
<p>If <var>loadState</var> is not undefined, then:</p>
Expand Down

0 comments on commit 4fd9960

Please sign in to comment.