Skip to content

Commit 7f09d70

Browse files
Unset the top-level module fetch flag in dynamic imports
The the top-level module fetch is only used in two steps of "fetch a single module script": - Step 9, where it only has effect if descrination is "worker", "sharedworker" or "serviceworker" (but for dynamic imports it's always "script") - Step 11, where it only has effect if there are custom "perform the fetch" steps, but "fetch an import() module script graph" is never called with custom "perform the fetch" steps.
1 parent 1fcb55e commit 7f09d70

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92925,10 +92925,10 @@ document.querySelector("button").addEventListener("click", bound);
9292592925
script</span>) or asynchronously (otherwise). The <var data-x="fetching-scripts-is-top-level">is
9292692926
top-level</var> flag will be set for all <span>classic script</span> fetches, and for the initial
9292792927
fetch when <span data-x="fetch an external module script graph">fetching an external module script
92928-
graph</span>, <span data-x="fetch a module worker script graph">fetching a module worker script
92929-
graph</span>, or <span data-x="fetch an import() module script graph">fetching an import() module
92930-
script graph</span>, but not for the fetches resulting from <code data-x="">import</code>
92931-
statements encountered throughout the graph.</p>
92928+
graph</span>, or <span data-x="fetch a module worker script graph">fetching a module worker script
92929+
graph</span>, but not for the fetches resulting from <code data-x="">import</code>
92930+
statements encountered throughout the graph or from <span data-x="fetch an import() module script
92931+
graph">fetching an import() module script graph</span>.</p>
9293292932

9293392933
<div class="note">
9293492934
<p>By default, not supplying the <span data-x="fetching-scripts-perform-fetch">perform the
@@ -93250,7 +93250,7 @@ document.querySelector("button").addEventListener("click", bound);
9325093250
<p><span>Fetch a single module script</span> given <var>url</var>, <var>settings
9325193251
object</var>, "<code data-x="">script</code>", <var>options</var>, <var>settings object</var>,
9325293252
"<code data-x="">client</code>", <var>moduleRequest</var>, with the <var>top-level module fetch
93253-
flag</var> set, and with the following steps given <var>result</var>:</p>
93253+
flag</var> unset, and with the following steps given <var>result</var>:</p>
9325493254

9325593255
<ol>
9325693256
<li><p>If <var>result</var> is null, run <var>onComplete</var> with null, and return.</p></li>

0 commit comments

Comments
 (0)