Skip to content

Commit

Permalink
Propagate the fetch settings object when loading module graphs
Browse files Browse the repository at this point in the history
Fixes #9513.
  • Loading branch information
nicolo-ribaudo authored and domenic committed Jul 18, 2023
1 parent 89f1163 commit 9121005
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -103352,7 +103352,8 @@ document.querySelector("button").addEventListener("click", bound);
</li>

<li><p>Let <var>state</var> be <span>Record</span> { [[ParseError]]: null, [[Destination]]:
<var>destination</var>, [[PerformFetch]]: null }.</p></li>
<var>destination</var>, [[PerformFetch]]: null, [[SettingsObject]]: <var>fetch client settings
object</var> }.</p></li>

<li><p>If <var>performFetch</var> was given, set <var>state</var>.[[PerformFetch]] to
<var>performFetch</var>.</p></li>
Expand Down Expand Up @@ -105799,15 +105800,23 @@ import "https://example.com/foo/../module2.mjs";</code></pre>

<li><p>Let <var>destination</var> be <code data-x="">"script"</code>.</p></li>

<li><p>If <var>loadState</var> is not undefined, then set <var>destination</var> to
<var>loadState</var>.[[Destination]].</p></li>
<li>
<p>If <var>loadState</var> is not undefined, then:</p>

<ol>
<li><p>Set <var>destination</var> to <var>loadState</var>.[[Destination]].</p></li>

<li><p>Set <var>settingsObject</var> <var>loadState</var>.[[SettingsObject]].</p></li>
</ol>
</li>

<li>
<p><span>Fetch a single imported module script</span> given <var>url</var>, <var>settings
object</var>, <var>destination</var>, <var>fetchOptions</var>, <var>fetchReferrer</var>,
<var>moduleRequest</var>, and <var>onSingleFetchComplete</var> as defined below. If
<var>loadState</var> is not undefined and <var>loadState</var>.[[PerformFetch]] is not null,
pass <var>loadState</var>.[[PerformFetch]] along as well.</p>
<p><span>Fetch a single imported module script</span> given <var>url</var>,
<var>settingsObject</var>, <var>destination</var>, <var>fetchOptions</var>,
<var>fetchReferrer</var>, <var>moduleRequest</var>, and <var>onSingleFetchComplete</var> as
defined below. If <var>loadState</var> is not undefined and
<var>loadState</var>.[[PerformFetch]] is not null, pass <var>loadState</var>.[[PerformFetch]]
along as well.</p>

<p><var>onSingleFetchComplete</var> given <var>moduleScript</var> is the following
algorithm:</p>
Expand Down

0 comments on commit 9121005

Please sign in to comment.