Skip to content

Commit 37134c2

Browse files
domenic review
1 parent 8eb8c6b commit 37134c2

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

source

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -93386,7 +93386,7 @@ document.querySelector("button").addEventListener("click", bound);
9338693386
<li><p>If <var>script</var> is null, run <var>onComplete</var> given null, and return.</p></li>
9338793387

9338893388
<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
9339093390
data-x="">script</code>", and <var>onComplete</var>.</p></li>
9339193391
</ol>
9339293392

@@ -93445,7 +93445,7 @@ document.querySelector("button").addEventListener("click", bound);
9344593445
<p>This diagram illustrates how these algorithms relate to the ones above, as well as to each
9344693446
other:</p>
9344793447

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.">
9344993449
<style>
9345093450
#module-script-fetching-diagram rect {
9345193451
stroke: black;
@@ -95936,13 +95936,13 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
9593695936
<span>classic script</span> or a <span>JavaScript module script</span>.</p></li>
9593795937

9593895938
<li>
95939-
<p>If none of the following conditions is true</p>
95939+
<p>If neither of the following conditions are true:</p>
9594095940

9594195941
<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>
9594395943

9594495944
<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>
9594695946
</ul>
9594795947

9594895948
<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>
9598095980
<p>If the previous step threw an exception, then:</p>
9598195981

9598295982
<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,
9598495984
[[Value]]: <var>resolutionError</var>, [[Target]]: empty }.</p></li>
9598595985

9598695986
<li><p>Perform <span>FinishLoadingImportedModule</span>(<var>referrer</var>,
@@ -96006,9 +96006,11 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
9600696006
algorithm:</p>
9600796007

9600896008
<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>
9601296014

9601396015
<li>
9601496016
<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>
9601896020
<li><p>Let <var>parseError</var> be <var>moduleScript</var>'s <span
9601996021
data-x="concept-script-parse-error">parse error</span>.</p></li>
9602096022

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,
9602296024
[[Value]]: <var>parseError</var>, [[Target]]: empty }.</p></li>
9602396025

9602496026
<li><p>If <var>loadState</var> is not undefined and <var>loadState</var>.[[ParseError]] is
9602596027
null, set <var>loadState</var>.[[ParseError]] to <var>parseError</var>.</p></li>
9602696028
</ol>
9602796029
</li>
9602896030

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]]:
9603096032
normal, [[Value]]: <var>result</var>'s <span data-x="concept-script-record">record</span>,
9603196033
[[Target]]: empty }.</p></li>
9603296034

0 commit comments

Comments
 (0)