@@ -93457,10 +93457,12 @@ document.querySelector("button").addEventListener("click", bound);
9345793457 </ol>
9345893458 </li>
9345993459
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>
9346493466
9346593467 <li>
9346693468 <p>Let <var>loading promise</var> be <var>record</var>.<span
@@ -93663,7 +93665,9 @@ document.querySelector("button").addEventListener("click", bound);
9366393665 <li><p><span>Fetch a single module script</span> given <var>url</var>, <var>settings
9366493666 object</var>, <var>destination</var>, <var>options</var>, <var>settings object</var>,
9366593667 <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>
9366793671 </ol>
9366893672
9366993673 <h5 id="creating-scripts">Creating scripts</h5>
@@ -95098,7 +95102,7 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
9509895102 <li><p>Let <var>destination</var> be "script".</p></li>
9509995103
9510095104 <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>
9510295106
9510395107 <li>
9510495108 <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>
9513395137 <li><p>Perform <span>FinishLoadImportedModule</span>(<var>referrer</var>,
9513495138 <var>moduleRequest</var>, <var>payload</var>, <var>completion</var>).</p></li>
9513595139 </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>
9513695145 </li>
9513795146 </ol>
9513895147
0 commit comments