@@ -96198,7 +96198,7 @@ document.querySelector("button").addEventListener("click", bound);
96198
96198
<li><p>If <var>script</var> is null, run <var>onComplete</var> given null, and return.</p></li>
96199
96199
96200
96200
<li><p><span data-x="fetch the descendants of and link a module script">Fetch the descendants of
96201
- and link</span> <var>script</var>, given <var>settings object</var>, the destination "<code
96201
+ and link</span> <var>script</var>, given <var>settings object</var>, "<code
96202
96202
data-x="">script</code>", and <var>onComplete</var>.</p></li>
96203
96203
</ol>
96204
96204
@@ -96269,7 +96269,7 @@ document.querySelector("button").addEventListener("click", bound);
96269
96269
<p>This diagram illustrates how these algorithms relate to the ones above, as well as to each
96270
96270
other:</p>
96271
96271
96272
- <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.">
96272
+ <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.">
96273
96273
<style>
96274
96274
#module-script-fetching-diagram rect {
96275
96275
stroke: black;
@@ -98774,13 +98774,13 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
98774
98774
script</span>.</p></li>
98775
98775
98776
98776
<li>
98777
- <p>If none of the following conditions is true</p>
98777
+ <p>If neither of the following conditions are true: </p>
98778
98778
98779
98779
<ul class="brief">
98780
- <li><var>referrer</var> is a <span>Script Record</span></li>
98780
+ <li><var>referrer</var> is a <span>Script Record</span>; or </li>
98781
98781
98782
98782
<li><var>referrer</var> is a <span data-x="Cyclic Module Record">Module Record</span> and
98783
- <var>referrer</var>.[[Status]] is one of evaluating, evaluating-async or evaluated</li>
98783
+ <var>referrer</var>.[[Status]] is one of evaluating, evaluating-async or evaluated, </li>
98784
98784
</ul>
98785
98785
98786
98786
<p>then set <var>fetch referrer</var> to <var>referrer</var>'s <span
@@ -98818,7 +98818,7 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
98818
98818
<p>If the previous step threw an exception, then:</p>
98819
98819
98820
98820
<ol>
98821
- <li><p>Let <var>completion</var> be the <span>Completion Record</span> { [[Type]]: throw,
98821
+ <li><p>Let <var>completion</var> be <span>Completion Record</span> { [[Type]]: throw,
98822
98822
[[Value]]: <var>resolutionError</var>, [[Target]]: empty }.</p></li>
98823
98823
98824
98824
<li><p>Perform <span>FinishLoadingImportedModule</span>(<var>referrer</var>,
@@ -98844,9 +98844,11 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
98844
98844
algorithm:</p>
98845
98845
98846
98846
<ol>
98847
- <li><p>If <var>moduleScript</var> is null, then let <var>completion</var> be the
98848
- <span>Completion Record</span> { [[Type]]: throw, [[Value]]: a new <code>TypeError</code>,
98849
- [[Target]]: empty }.</p></li>
98847
+ <li><p>Let <var>completion</var> be null.</p></li>
98848
+
98849
+ <li><p>If <var>moduleScript</var> is null, then set <var>completion</var> to <span>Completion
98850
+ Record</span> { [[Type]]: throw, [[Value]]: a new <code>TypeError</code>, [[Target]]: empty
98851
+ }.</p></li>
98850
98852
98851
98853
<li>
98852
98854
<p>Otherwise, if <var>moduleScript</var>'s <span data-x="concept-script-parse-error">parse
@@ -98856,15 +98858,15 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
98856
98858
<li><p>Let <var>parseError</var> be <var>moduleScript</var>'s <span
98857
98859
data-x="concept-script-parse-error">parse error</span>.</p></li>
98858
98860
98859
- <li><p>Let <var>completion</var> be the <span>Completion Record</span> { [[Type]]: throw,
98861
+ <li><p>Set <var>completion</var> to <span>Completion Record</span> { [[Type]]: throw,
98860
98862
[[Value]]: <var>parseError</var>, [[Target]]: empty }.</p></li>
98861
98863
98862
98864
<li><p>If <var>loadState</var> is not undefined and <var>loadState</var>.[[ParseError]] is
98863
98865
null, set <var>loadState</var>.[[ParseError]] to <var>parseError</var>.</p></li>
98864
98866
</ol>
98865
98867
</li>
98866
98868
98867
- <li><p>Otherwise, let <var>completion</var> be the <span>Completion Record</span> { [[Type]]:
98869
+ <li><p>Otherwise, set <var>completion</var> to <span>Completion Record</span> { [[Type]]:
98868
98870
normal, [[Value]]: <var>result</var>'s <span data-x="concept-script-record">record</span>,
98869
98871
[[Target]]: empty }.</p></li>
98870
98872
0 commit comments