Skip to content

Commit 589fa3c

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 085d4d1 commit 589fa3c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

source

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95855,10 +95855,11 @@ document.querySelector("button").addEventListener("click", bound);
9585595855
sequence</span> containing the response body. <dfn export for="fetching scripts"><var
9585695856
data-x="fetching-scripts-is-top-level">isTopLevel</var></dfn> will be true for all <span>classic
9585795857
script</span> fetches, and for the initial fetch when <span data-x="fetch an external module
95858-
script graph">fetching an external module script graph</span>, <span data-x="fetch a module worker
95859-
script graph">fetching a module worker script graph</span>, or <span data-x="fetch an import()
95860-
module script graph">fetching an import() module script graph</span>, but false for the fetches
95861-
resulting from <code data-x="">import</code> statements encountered throughout the graph.</p>
95858+
script graph">fetching an external module script graph</span>, or <span data-x="fetch a module
95859+
worker script graph">fetching a module worker script graph</span>, but false for the fetches
95860+
resulting from <code data-x="">import</code> statements encountered throughout the graph or from
95861+
<span data-x="fetch an import() module script graph">fetching an import() module script
95862+
graph</span>.</p>
9586295863

9586395864
<p>By default, not supplying a <span data-x="fetching-scripts-perform-fetch">perform the fetch
9586495865
hook</span> will cause the below algorithms to simply <span data-x="concept-fetch">fetch</span>
@@ -96182,7 +96183,7 @@ document.querySelector("button").addEventListener("click", bound);
9618296183
<li>
9618396184
<p><span>Fetch a single module script</span> given <var>url</var>, <var>settings
9618496185
object</var>, "<code data-x="">script</code>", <var>options</var>, <var>settings object</var>,
96185-
"<code data-x="">client</code>", <var>moduleRequest</var>, true, and with the following steps
96186+
"<code data-x="">client</code>", <var>moduleRequest</var>, false, and with the following steps
9618696187
given <var>result</var>:</p>
9618796188

9618896189
<ol>

0 commit comments

Comments
 (0)