Skip to content

Commit

Permalink
Use correct settings object for modules imported in workers
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo authored and rubberyuzu committed Aug 25, 2023
1 parent a48c3d9 commit fe28ce1
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -103743,7 +103743,7 @@ document.querySelector("button").addEventListener("click", bound);

<p>To <dfn data-x="fetch the descendants of and link a module script">fetch the descendants of and
link</dfn> a <span>module script</span> <var>moduleScript</var>, given an <span>environment
settings object</span> <var>settingsObject</var>, a <span
settings object</span> <var>fetchClient</var>, a <span
data-x="concept-request-destination">destination</span> <var>destination</var>, an
algorithm <var>onComplete</var>, and an optional <span
data-x="fetching-scripts-perform-fetch">perform the fetch hook</span> <var>performFetch</var>, run
Expand All @@ -103768,7 +103768,7 @@ 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, [[SettingsObject]]: <var>settingsObject</var>
<var>destination</var>, [[PerformFetch]]: null, [[FetchClient]]: <var>fetchClient</var>
}.</p></li>

<li><p>If <var>performFetch</var> was given, set <var>state</var>.[[PerformFetch]] to
Expand Down Expand Up @@ -103961,9 +103961,10 @@ document.querySelector("button").addEventListener("click", bound);
</ol>

<p>To <dfn>fetch a single imported module script</dfn>, given a <span>URL</span> <var>url</var>,
an <span>environment settings object</span> <var>settingsObject</var>, a <span
an <span>environment settings object</span> <var>fetchClient</var>, a <span
data-x="concept-request-destination">destination</span> <var>destination</var>, a <span>script
fetch options</span> <var>options</var>, a <span data-x="concept-request-referrer">referrer</span>
fetch options</span> <var>options</var>, <span>environment settings object</span>
<var>settingsObject</var>, a <span data-x="concept-request-referrer">referrer</span>
<var>referrer</var>, a <span>ModuleRequest Record</span> <var>moduleRequest</var>, an
algorithm <var>onComplete</var>, and an optional <span
data-x="fetching-scripts-perform-fetch">perform the fetch hook</span> <var>performFetch</var>, run
Expand All @@ -103983,7 +103984,7 @@ document.querySelector("button").addEventListener("click", bound);
<var>moduleType</var> and <var>settingsObject</var> is false, then run <var>onComplete</var>
given null, and return.</p></li>

<li><p><span>Fetch a single module script</span> given <var>url</var>, <var>settingsObject</var>,
<li><p><span>Fetch a single module script</span> given <var>url</var>, <var>fetchClient</var>,
<var>destination</var>, <var>options</var>, <var>settingsObject</var>, <var>referrer</var>,
<var>moduleRequest</var>, false, and <var>onComplete</var>. If <var>performFetch</var> was given,
pass it along as well.</p></li>
Expand Down Expand Up @@ -106221,21 +106222,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>Let <var>fetchClient</var> be <var>settingsObject</var>.</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>
<li><p>Set <var>fetchClient</var> <var>loadState</var>.[[FetchClient]].</p></li>
</ol>
</li>

<li>
<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>fetchClient</var>, <var>destination</var>, <var>fetchOptions</var>,
<var>settingsObject</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>

Expand Down

0 comments on commit fe28ce1

Please sign in to comment.