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