@@ -93386,7 +93386,7 @@ document.querySelector("button").addEventListener("click", bound);
93386
93386
<li><p>If <var>script</var> is null, run <var>onComplete</var> given null, and return.</p></li>
93387
93387
93388
93388
<li><p><span data-x="fetch the descendants of and link a module script">Fetch the descendants of
93389
- and link</span> <var>script</var>, given <var>settings object</var>, the destination "<code
93389
+ and link</span> <var>script</var>, given <var>settings object</var>, "<code
93390
93390
data-x="">script</code>", and <var>onComplete</var>.</p></li>
93391
93391
</ol>
93392
93392
@@ -93445,7 +93445,7 @@ document.querySelector("button").addEventListener("click", bound);
93445
93445
<p>This diagram illustrates how these algorithms relate to the ones above, as well as to each
93446
93446
other:</p>
93447
93447
93448
- <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.">
93448
+ <svg id="module-script-fetching-diagram" viewBox="0 0 941 166 " 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.">
93449
93449
<style>
93450
93450
#module-script-fetching-diagram rect {
93451
93451
stroke: black;
@@ -95936,13 +95936,13 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
95936
95936
<span>classic script</span> or a <span>JavaScript module script</span>.</p></li>
95937
95937
95938
95938
<li>
95939
- <p>If none of the following conditions is true</p>
95939
+ <p>If neither of the following conditions are true: </p>
95940
95940
95941
95941
<ul class="brief">
95942
- <li><var>referrer</var> is a <span>Script Record</span></li>
95942
+ <li><var>referrer</var> is a <span>Script Record</span>; or </li>
95943
95943
95944
95944
<li><var>referrer</var> is a <span data-x="Cyclic Module Record">Module Record</span> and
95945
- <var>referrer</var>.[[Status]] is one of evaluating, evaluating-async or evaluated</li>
95945
+ <var>referrer</var>.[[Status]] is one of evaluating, evaluating-async or evaluated, </li>
95946
95946
</ul>
95947
95947
95948
95948
<p>then set <var>fetch referrer</var> to <var>referrer</var>'s <span
@@ -95980,7 +95980,7 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
95980
95980
<p>If the previous step threw an exception, then:</p>
95981
95981
95982
95982
<ol>
95983
- <li><p>Let <var>completion</var> be the <span>Completion Record</span> { [[Type]]: throw,
95983
+ <li><p>Let <var>completion</var> be <span>Completion Record</span> { [[Type]]: throw,
95984
95984
[[Value]]: <var>resolutionError</var>, [[Target]]: empty }.</p></li>
95985
95985
95986
95986
<li><p>Perform <span>FinishLoadingImportedModule</span>(<var>referrer</var>,
@@ -96006,9 +96006,11 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
96006
96006
algorithm:</p>
96007
96007
96008
96008
<ol>
96009
- <li><p>If <var>moduleScript</var> is null, then let <var>completion</var> be the
96010
- <span>Completion Record</span> { [[Type]]: throw, [[Value]]: a new <code>TypeError</code>,
96011
- [[Target]]: empty }.</p></li>
96009
+ <li><p>Let <var>completion</var> be null.</p></li>
96010
+
96011
+ <li><p>If <var>moduleScript</var> is null, then set <var>completion</var> to <span>Completion
96012
+ Record</span> { [[Type]]: throw, [[Value]]: a new <code>TypeError</code>, [[Target]]: empty
96013
+ }.</p></li>
96012
96014
96013
96015
<li>
96014
96016
<p>Otherwise, if <var>moduleScript</var>'s <span data-x="concept-script-parse-error">parse
@@ -96018,15 +96020,15 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
96018
96020
<li><p>Let <var>parseError</var> be <var>moduleScript</var>'s <span
96019
96021
data-x="concept-script-parse-error">parse error</span>.</p></li>
96020
96022
96021
- <li><p>Let <var>completion</var> be the <span>Completion Record</span> { [[Type]]: throw,
96023
+ <li><p>Set <var>completion</var> to <span>Completion Record</span> { [[Type]]: throw,
96022
96024
[[Value]]: <var>parseError</var>, [[Target]]: empty }.</p></li>
96023
96025
96024
96026
<li><p>If <var>loadState</var> is not undefined and <var>loadState</var>.[[ParseError]] is
96025
96027
null, set <var>loadState</var>.[[ParseError]] to <var>parseError</var>.</p></li>
96026
96028
</ol>
96027
96029
</li>
96028
96030
96029
- <li><p>Otherwise, let <var>completion</var> be the <span>Completion Record</span> { [[Type]]:
96031
+ <li><p>Otherwise, set <var>completion</var> to <span>Completion Record</span> { [[Type]]:
96030
96032
normal, [[Value]]: <var>result</var>'s <span data-x="concept-script-record">record</span>,
96031
96033
[[Target]]: empty }.</p></li>
96032
96034
0 commit comments