Skip to content

Commit

Permalink
domenic review
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Nov 3, 2022
1 parent e7e6ae5 commit 27e6845
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -96109,7 +96109,7 @@ document.querySelector("button").addEventListener("click", bound);
<li><p>If <var>script</var> is null, run <var>onComplete</var> given null, and return.</p></li>

<li><p><span data-x="fetch the descendants of and link a module script">Fetch the descendants of
and link</span> <var>script</var>, given <var>settings object</var>, the destination "<code
and link</span> <var>script</var>, given <var>settings object</var>, "<code
data-x="">script</code>", and <var>onComplete</var>.</p></li>
</ol>

Expand Down Expand Up @@ -96180,7 +96180,7 @@ document.querySelector("button").addEventListener("click", bound);
<p>This diagram illustrates how these algorithms relate to the ones above, as well as to each
other:</p>

<svg id="module-script-fetching-diagram" viewBox="0 0 941 256" style="width: 80%; max-width: 1024px" role="img" aria-label="Fetch an external module script, fetch a modulepreload module script graph, fetch an inline module script graph, and fetch a module worker script graph all call fetch the descendants of and link a module script.">
<svg id="module-script-fetching-diagram" viewBox="0 0 941 166" style="width: 100%; max-width: 1024px" role="img" aria-label="Fetch an external module script, fetch a modulepreload module script graph, fetch an inline module script graph, and fetch a module worker script graph all call fetch the descendants of and link a module script.">
<style>
#module-script-fetching-diagram rect {
stroke: black;
Expand Down Expand Up @@ -98683,13 +98683,13 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
script</span>.</p></li>

<li>
<p>If none of the following conditions is true</p>
<p>If neither of the following conditions are true:</p>

<ul class="brief">
<li><var>referrer</var> is a <span>Script Record</span></li>
<li><var>referrer</var> is a <span>Script Record</span>; or</li>

<li><var>referrer</var> is a <span data-x="Cyclic Module Record">Module Record</span> and
<var>referrer</var>.[[Status]] is one of evaluating, evaluating-async or evaluated</li>
<var>referrer</var>.[[Status]] is one of evaluating, evaluating-async or evaluated,</li>
</ul>

<p>then set <var>fetch referrer</var> to <var>referrer</var>'s <span
Expand Down Expand Up @@ -98727,7 +98727,7 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
<p>If the previous step threw an exception, then:</p>

<ol>
<li><p>Let <var>completion</var> be the <span>Completion Record</span> { [[Type]]: throw,
<li><p>Let <var>completion</var> be <span>Completion Record</span> { [[Type]]: throw,
[[Value]]: <var>resolutionError</var>, [[Target]]: empty }.</p></li>

<li><p>Perform <span>FinishLoadingImportedModule</span>(<var>referrer</var>,
Expand All @@ -98753,9 +98753,11 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
algorithm:</p>

<ol>
<li><p>If <var>moduleScript</var> is null, then let <var>completion</var> be the
<span>Completion Record</span> { [[Type]]: throw, [[Value]]: a new <code>TypeError</code>,
[[Target]]: empty }.</p></li>
<li><p>Let <var>completion</var> be null.</p></li>

<li><p>If <var>moduleScript</var> is null, then set <var>completion</var> to <span>Completion
Record</span> { [[Type]]: throw, [[Value]]: a new <code>TypeError</code>, [[Target]]: empty
}.</p></li>

<li>
<p>Otherwise, if <var>moduleScript</var>'s <span data-x="concept-script-parse-error">parse
Expand All @@ -98765,15 +98767,15 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
<li><p>Let <var>parseError</var> be <var>moduleScript</var>'s <span
data-x="concept-script-parse-error">parse error</span>.</p></li>

<li><p>Let <var>completion</var> be the <span>Completion Record</span> { [[Type]]: throw,
<li><p>Set <var>completion</var> to <span>Completion Record</span> { [[Type]]: throw,
[[Value]]: <var>parseError</var>, [[Target]]: empty }.</p></li>

<li><p>If <var>loadState</var> is not undefined and <var>loadState</var>.[[ParseError]] is
null, set <var>loadState</var>.[[ParseError]] to <var>parseError</var>.</p></li>
</ol>
</li>

<li><p>Otherwise, let <var>completion</var> be the <span>Completion Record</span> { [[Type]]:
<li><p>Otherwise, set <var>completion</var> to <span>Completion Record</span> { [[Type]]:
normal, [[Value]]: <var>result</var>'s <span data-x="concept-script-record">record</span>,
[[Target]]: empty }.</p></li>

Expand Down

0 comments on commit 27e6845

Please sign in to comment.