@@ -96109,7 +96109,7 @@ document.querySelector("button").addEventListener("click", bound);
9610996109 <li><p>If <var>script</var> is null, run <var>onComplete</var> given null, and return.</p></li>
9611096110
9611196111 <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
9611396113 data-x="">script</code>", and <var>onComplete</var>.</p></li>
9611496114 </ol>
9611596115
@@ -96180,7 +96180,7 @@ document.querySelector("button").addEventListener("click", bound);
9618096180 <p>This diagram illustrates how these algorithms relate to the ones above, as well as to each
9618196181 other:</p>
9618296182
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.">
9618496184 <style>
9618596185 #module-script-fetching-diagram rect {
9618696186 stroke: black;
@@ -98683,13 +98683,13 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
9868398683 script</span>.</p></li>
9868498684
9868598685 <li>
98686- <p>If none of the following conditions is true</p>
98686+ <p>If neither of the following conditions are true: </p>
9868798687
9868898688 <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>
9869098690
9869198691 <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>
9869398693 </ul>
9869498694
9869598695 <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>
9872798727 <p>If the previous step threw an exception, then:</p>
9872898728
9872998729 <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,
9873198731 [[Value]]: <var>resolutionError</var>, [[Target]]: empty }.</p></li>
9873298732
9873398733 <li><p>Perform <span>FinishLoadingImportedModule</span>(<var>referrer</var>,
@@ -98753,9 +98753,11 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
9875398753 algorithm:</p>
9875498754
9875598755 <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>
9875998761
9876098762 <li>
9876198763 <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>
9876598767 <li><p>Let <var>parseError</var> be <var>moduleScript</var>'s <span
9876698768 data-x="concept-script-parse-error">parse error</span>.</p></li>
9876798769
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,
9876998771 [[Value]]: <var>parseError</var>, [[Target]]: empty }.</p></li>
9877098772
9877198773 <li><p>If <var>loadState</var> is not undefined and <var>loadState</var>.[[ParseError]] is
9877298774 null, set <var>loadState</var>.[[ParseError]] to <var>parseError</var>.</p></li>
9877398775 </ol>
9877498776 </li>
9877598777
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]]:
9877798779 normal, [[Value]]: <var>result</var>'s <span data-x="concept-script-record">record</span>,
9877898780 [[Target]]: empty }.</p></li>
9877998781
0 commit comments