@@ -93457,10 +93457,12 @@ document.querySelector("button").addEventListener("click", bound);
93457
93457
</ol>
93458
93458
</li>
93459
93459
93460
- <li>
93461
- <p>Let <var>state</var> be Record { [[ParseError]]: null, [[Destination]]:
93462
- <var>destination</var> }.</p>
93463
- </li>
93460
+ <li><p>Let <var>state</var> be Record { [[ParseError]]: null, [[Destination]]:
93461
+ <var>destination</var>, [[PerformTheFetch]]: null }.</p></li>
93462
+
93463
+ <li><p>If the caller of this algorithm specified custom <span
93464
+ data-x="fetching-scripts-perform-fetch">perform the fetch</span> steps, set
93465
+ <var>state</var>.[[PerformTheFetch]] to such steps.</p></li>
93464
93466
93465
93467
<li>
93466
93468
<p>Let <var>loading promise</var> be <var>record</var>.<span
@@ -93663,7 +93665,9 @@ document.querySelector("button").addEventListener("click", bound);
93663
93665
<li><p><span>Fetch a single module script</span> given <var>url</var>, <var>settings
93664
93666
object</var>, <var>destination</var>, <var>options</var>, <var>settings object</var>,
93665
93667
<var>referrer</var>, <var>moduleRequest</var>, with the <var>top-level module fetch flag</var>
93666
- unset, and with <var>onComplete</var>.</p></li>
93668
+ unset, and with <var>onComplete</var>. If the caller of this algorithm specified custom <span
93669
+ data-x="fetching-scripts-perform-fetch">perform the fetch</span> steps, pass those along as
93670
+ well.</p></li>
93667
93671
</ol>
93668
93672
93669
93673
<h5 id="creating-scripts">Creating scripts</h5>
@@ -95098,7 +95102,7 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
95098
95102
<li><p>Let <var>destination</var> be "script".</p></li>
95099
95103
95100
95104
<li><p>If <var>loadState</var> is not undefined, set <var>destination</var> to
95101
- <var>loadState.[[Destination]]</var> .</p></li>
95105
+ <var>loadState</var> .[[Destination]].</p></li>
95102
95106
95103
95107
<li>
95104
95108
<p><span>Fetch a single imported module script</span> given <var>settings object</var>,
@@ -95133,6 +95137,11 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
95133
95137
<li><p>Perform <span>FinishLoadImportedModule</span>(<var>referrer</var>,
95134
95138
<var>moduleRequest</var>, <var>payload</var>, <var>completion</var>).</p></li>
95135
95139
</ol>
95140
+
95141
+ <p>If <var>loadState</var> is not undefined and <var>loadState</var>.[[PerformTheFetch]] is not
95142
+ null, pass <var>loadState</var>.[[PerformTheFetch]] as <span>fetch a single imported module
95143
+ script</span>'s custom <span data-x="fetching-scripts-perform-fetch">perform the fetch</span>
95144
+ steps.</p>
95136
95145
</li>
95137
95146
</ol>
95138
95147
0 commit comments