Skip to content

Commit d748393

Browse files
committed
Editorial: make 'module type allowed' take a realm
1 parent 0e76ae8 commit d748393

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

source

+11-10
Original file line numberDiff line numberDiff line change
@@ -104748,10 +104748,11 @@ document.querySelector("button").addEventListener("click", bound);
104748104748
<var>moduleRequest</var>.</p></li>
104749104749

104750104750
<li><p><span>Assert</span>: the result of running the <span>module type allowed</span> steps
104751-
given <var>moduleType</var> and <var>settingsObject</var> is true. Otherwise we would not have
104752-
reached this point because a failure would have been raised when inspecting
104753-
<var>moduleRequest</var>.[[Attributes]] in <a href="#validate-requested-module-specifiers">create
104754-
a JavaScript module script</a> or <span>fetch a single imported module script</span>.</p></li>
104751+
given <var>moduleType</var> and <var>settingsObject</var>'s <span data-x="environment settings
104752+
object's realm">realm</span> is true. Otherwise we would not have reached this point because a
104753+
failure would have been raised when inspecting <var>moduleRequest</var>.[[Attributes]] in
104754+
<a href="#validate-requested-module-specifiers">create a JavaScript module script</a> or
104755+
<span>fetch a single imported module script</span>.</p></li>
104755104756

104756104757
<li><p>Let <var>moduleMap</var> be <var>settingsObject</var>'s <span
104757104758
data-x="concept-settings-object-module-map">module map</span>.</p></li>
@@ -104891,8 +104892,8 @@ document.querySelector("button").addEventListener("click", bound);
104891104892
request</span> steps given <var>moduleRequest</var>.</p></li>
104892104893

104893104894
<li><p>If the result of running the <span>module type allowed</span> steps given
104894-
<var>moduleType</var> and <var>settingsObject</var> is false, then run <var>onComplete</var>
104895-
given null, and return.</p></li>
104895+
<var>moduleType</var> and <var>settingsObject</var>'s <span data-x="environment settings object's
104896+
realm">realm</span> is false, then run <var>onComplete</var> given null, and return.</p></li>
104896104897

104897104898
<li><p><span>Fetch a single module script</span> given <var>url</var>, <var>fetchClient</var>,
104898104899
<var>destination</var>, <var>options</var>, <var>settingsObject</var>, <var>referrer</var>,
@@ -105054,7 +105055,8 @@ document.querySelector("button").addEventListener("click", bound);
105054105055

105055105056
<li>
105056105057
<p>If the result of running the <span>module type allowed</span> steps given
105057-
<var>moduleType</var> and <var>settings</var> is false, then:</p>
105058+
<var>moduleType</var> and <var>settings</var>'s <span data-x="environment settings object's
105059+
realm">realm</span> is false, then:</p>
105058105060

105059105061
<ol>
105060105062
<li><p>Let <var>error</var> be a new <code>TypeError</code> exception.</p></li>
@@ -105179,16 +105181,15 @@ document.querySelector("button").addEventListener("click", bound);
105179105181
</ol>
105180105182

105181105183
<p>The <dfn>module type allowed</dfn> steps, given a <span>string</span> <var>moduleType</var>
105182-
and an <span>environment settings object</span> <var>settings</var>, are as follows:</p>
105184+
and a <span>realm</span> <var>realm</var>, are as follows:</p>
105183105185

105184105186
<ol>
105185105187
<li><p>If <var>moduleType</var> is not "<code data-x="">javascript</code>", "<code
105186105188
data-x="">css</code>", or "<code data-x="">json</code>", then return false.</p></li>
105187105189

105188105190
<li><p>If <var>moduleType</var> is "<code data-x="">css</code>" and the
105189105191
<code>CSSStyleSheet</code> interface is not <span data-x="idl-exposed">exposed</span> in
105190-
<var>settings</var>'s <span data-x="environment settings object's realm">realm</span>, then
105191-
return false.</p></li>
105192+
<var>realm</var>, then return false.</p></li>
105192105193

105193105194
<li><p>Return true.</p></li>
105194105195
</ol>

0 commit comments

Comments
 (0)