Skip to content

Commit 40eab38

Browse files
domenic review
1 parent fe39edb commit 40eab38

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

9620096200
<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
9620296202
data-x="">script</code>", and <var>onComplete</var>.</p></li>
9620396203
</ol>
9620496204

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

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.">
9627396273
<style>
9627496274
#module-script-fetching-diagram rect {
9627596275
stroke: black;
@@ -98774,13 +98774,13 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
9877498774
script</span>.</p></li>
9877598775

9877698776
<li>
98777-
<p>If none of the following conditions is true</p>
98777+
<p>If neither of the following conditions are true:</p>
9877898778

9877998779
<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>
9878198781

9878298782
<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>
9878498784
</ul>
9878598785

9878698786
<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>
9881898818
<p>If the previous step threw an exception, then:</p>
9881998819

9882098820
<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,
9882298822
[[Value]]: <var>resolutionError</var>, [[Target]]: empty }.</p></li>
9882398823

9882498824
<li><p>Perform <span>FinishLoadingImportedModule</span>(<var>referrer</var>,
@@ -98844,9 +98844,11 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
9884498844
algorithm:</p>
9884598845

9884698846
<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>
9885098852

9885198853
<li>
9885298854
<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>
9885698858
<li><p>Let <var>parseError</var> be <var>moduleScript</var>'s <span
9885798859
data-x="concept-script-parse-error">parse error</span>.</p></li>
9885898860

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

9886298864
<li><p>If <var>loadState</var> is not undefined and <var>loadState</var>.[[ParseError]] is
9886398865
null, set <var>loadState</var>.[[ParseError]] to <var>parseError</var>.</p></li>
9886498866
</ol>
9886598867
</li>
9886698868

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

0 commit comments

Comments
 (0)