Skip to content

Commit f37b834

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 c7ad099 commit f37b834

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
@@ -92826,10 +92826,10 @@ document.querySelector("button").addEventListener("click", bound);
9282692826
script</span>) or asynchronously (otherwise). The <var data-x="fetching-scripts-is-top-level">is
9282792827
top-level</var> flag will be set for all <span>classic script</span> fetches, and for the initial
9282892828
fetch when <span data-x="fetch an external module script graph">fetching an external module script
92829-
graph</span>, <span data-x="fetch a module worker script graph">fetching a module worker script
92830-
graph</span>, or <span data-x="fetch an import() module script graph">fetching an import() module
92831-
script graph</span>, but not for the fetches resulting from <code data-x="">import</code>
92832-
statements encountered throughout the graph.</p>
92829+
graph</span>, or <span data-x="fetch a module worker script graph">fetching a module worker script
92830+
graph</span>, but not for the fetches resulting from <code data-x="">import</code>
92831+
statements encountered throughout the graph or from <span data-x="fetch an import() module script
92832+
graph">fetching an import() module script graph</span>.</p>
9283392833

9283492834
<div class="note">
9283592835
<p>By default, not supplying the <span data-x="fetching-scripts-perform-fetch">perform the
@@ -93137,7 +93137,7 @@ document.querySelector("button").addEventListener("click", bound);
9313793137
<li><p><span>Fetch a single module script</span> given <var>url</var>, <var>settings
9313893138
object</var>, "<code data-x="">script</code>", <var>options</var>, <var>settings object</var>,
9313993139
"<code data-x="">client</code>", <var>moduleRequest</var>, and with the
93140-
<var>top-level module fetch flag</var> set. If the caller of this algorithm specified custom
93140+
<var>top-level module fetch flag</var> unset. If the caller of this algorithm specified custom
9314193141
<span data-x="fetching-scripts-perform-fetch">perform the fetch</span> steps, pass those along as
9314293142
well. Wait until the algorithm asynchronously completes with <var>result</var>.</p></li>
9314393143

0 commit comments

Comments
 (0)