Skip to content

Commit 37cf6c1

Browse files
domenic review
1 parent 90e5d4d commit 37cf6c1

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
@@ -96106,7 +96106,7 @@ document.querySelector("button").addEventListener("click", bound);
9610696106
<li><p>If <var>script</var> is null, run <var>onComplete</var> given null, and return.</p></li>
9610796107

9610896108
<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
9611096110
data-x="">script</code>", and <var>onComplete</var>.</p></li>
9611196111
</ol>
9611296112

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

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.">
9618196181
<style>
9618296182
#module-script-fetching-diagram rect {
9618396183
stroke: black;
@@ -98679,13 +98679,13 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
9867998679
script</span>.</p></li>
9868098680

9868198681
<li>
98682-
<p>If none of the following conditions is true</p>
98682+
<p>If neither of the following conditions are true:</p>
9868398683

9868498684
<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>
9868698686

9868798687
<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>
9868998689
</ul>
9869098690

9869198691
<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>
9872398723
<p>If the previous step threw an exception, then:</p>
9872498724

9872598725
<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,
9872798727
[[Value]]: <var>resolutionError</var>, [[Target]]: empty }.</p></li>
9872898728

9872998729
<li><p>Perform <span>FinishLoadingImportedModule</span>(<var>referrer</var>,
@@ -98749,9 +98749,11 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
9874998749
algorithm:</p>
9875098750

9875198751
<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>
9875598757

9875698758
<li>
9875798759
<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>
9876198763
<li><p>Let <var>parseError</var> be <var>moduleScript</var>'s <span
9876298764
data-x="concept-script-parse-error">parse error</span>.</p></li>
9876398765

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

9876798769
<li><p>If <var>loadState</var> is not undefined and <var>loadState</var>.[[ParseError]] is
9876898770
null, set <var>loadState</var>.[[ParseError]] to <var>parseError</var>.</p></li>
9876998771
</ol>
9877098772
</li>
9877198773

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

0 commit comments

Comments
 (0)