@@ -96109,7 +96109,7 @@ document.querySelector("button").addEventListener("click", bound);
96109
96109
<li><p>If <var>script</var> is null, run <var>onComplete</var> given null, and return.</p></li>
96110
96110
96111
96111
<li><p><span data-x="fetch the descendants of and link a module script">Fetch the descendants of
96112
- and link</span> <var>script</var>, given <var>settings object</var>, the destination "<code
96112
+ and link</span> <var>script</var>, given <var>settings object</var>, "<code
96113
96113
data-x="">script</code>", and <var>onComplete</var>.</p></li>
96114
96114
</ol>
96115
96115
@@ -96180,7 +96180,7 @@ document.querySelector("button").addEventListener("click", bound);
96180
96180
<p>This diagram illustrates how these algorithms relate to the ones above, as well as to each
96181
96181
other:</p>
96182
96182
96183
- <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.">
96183
+ <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.">
96184
96184
<style>
96185
96185
#module-script-fetching-diagram rect {
96186
96186
stroke: black;
@@ -98683,13 +98683,13 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
98683
98683
script</span>.</p></li>
98684
98684
98685
98685
<li>
98686
- <p>If none of the following conditions is true</p>
98686
+ <p>If neither of the following conditions are true: </p>
98687
98687
98688
98688
<ul class="brief">
98689
- <li><var>referrer</var> is a <span>Script Record</span></li>
98689
+ <li><var>referrer</var> is a <span>Script Record</span>; or </li>
98690
98690
98691
98691
<li><var>referrer</var> is a <span data-x="Cyclic Module Record">Module Record</span> and
98692
- <var>referrer</var>.[[Status]] is one of evaluating, evaluating-async or evaluated</li>
98692
+ <var>referrer</var>.[[Status]] is one of evaluating, evaluating-async or evaluated, </li>
98693
98693
</ul>
98694
98694
98695
98695
<p>then set <var>fetch referrer</var> to <var>referrer</var>'s <span
@@ -98727,7 +98727,7 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
98727
98727
<p>If the previous step threw an exception, then:</p>
98728
98728
98729
98729
<ol>
98730
- <li><p>Let <var>completion</var> be the <span>Completion Record</span> { [[Type]]: throw,
98730
+ <li><p>Let <var>completion</var> be <span>Completion Record</span> { [[Type]]: throw,
98731
98731
[[Value]]: <var>resolutionError</var>, [[Target]]: empty }.</p></li>
98732
98732
98733
98733
<li><p>Perform <span>FinishLoadingImportedModule</span>(<var>referrer</var>,
@@ -98753,9 +98753,11 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
98753
98753
algorithm:</p>
98754
98754
98755
98755
<ol>
98756
- <li><p>If <var>moduleScript</var> is null, then let <var>completion</var> be the
98757
- <span>Completion Record</span> { [[Type]]: throw, [[Value]]: a new <code>TypeError</code>,
98758
- [[Target]]: empty }.</p></li>
98756
+ <li><p>Let <var>completion</var> be null.</p></li>
98757
+
98758
+ <li><p>If <var>moduleScript</var> is null, then set <var>completion</var> to <span>Completion
98759
+ Record</span> { [[Type]]: throw, [[Value]]: a new <code>TypeError</code>, [[Target]]: empty
98760
+ }.</p></li>
98759
98761
98760
98762
<li>
98761
98763
<p>Otherwise, if <var>moduleScript</var>'s <span data-x="concept-script-parse-error">parse
@@ -98765,15 +98767,15 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
98765
98767
<li><p>Let <var>parseError</var> be <var>moduleScript</var>'s <span
98766
98768
data-x="concept-script-parse-error">parse error</span>.</p></li>
98767
98769
98768
- <li><p>Let <var>completion</var> be the <span>Completion Record</span> { [[Type]]: throw,
98770
+ <li><p>Set <var>completion</var> to <span>Completion Record</span> { [[Type]]: throw,
98769
98771
[[Value]]: <var>parseError</var>, [[Target]]: empty }.</p></li>
98770
98772
98771
98773
<li><p>If <var>loadState</var> is not undefined and <var>loadState</var>.[[ParseError]] is
98772
98774
null, set <var>loadState</var>.[[ParseError]] to <var>parseError</var>.</p></li>
98773
98775
</ol>
98774
98776
</li>
98775
98777
98776
- <li><p>Otherwise, let <var>completion</var> be the <span>Completion Record</span> { [[Type]]:
98778
+ <li><p>Otherwise, set <var>completion</var> to <span>Completion Record</span> { [[Type]]:
98777
98779
normal, [[Value]]: <var>result</var>'s <span data-x="concept-script-record">record</span>,
98778
98780
[[Target]]: empty }.</p></li>
98779
98781
0 commit comments