@@ -94860,9 +94860,7 @@ dictionary <dfn dictionary>PromiseRejectionEventInit</dfn> : <span>EventInit</sp
94860
94860
<var>referringScript</var> and a <span>string</span> <var>specifier</var>:</p>
94861
94861
94862
94862
<ol>
94863
- <li><p>Let <var>settingsObject</var> be the <span>current settings object</span>.</p></li>
94864
-
94865
- <li><p>Let <var>baseURL</var> be <var>settingsObject</var>'s <span>API base URL</span>.</p></li>
94863
+ <li><p>Let <var>settingsObject</var> and <var>baseURL</var> be null.</p></li>
94866
94864
94867
94865
<li>
94868
94866
<p>If <var>referringScript</var> is not null, then:</p>
@@ -94876,6 +94874,19 @@ dictionary <dfn dictionary>PromiseRejectionEventInit</dfn> : <span>EventInit</sp
94876
94874
</ol>
94877
94875
</li>
94878
94876
94877
+ <li>
94878
+ <p>Otherwise:</p>
94879
+
94880
+ <ol>
94881
+ <li><p><span>Assert</span>: there is a <span>current settings object</span>.</p></li>
94882
+
94883
+ <li><p>Set <var>settingsObject</var> to the <span>current settings object</span>.</p></li>
94884
+
94885
+ <li><p>Set <var>baseURL</var> to <var>settingsObject</var>'s <span>API base
94886
+ URL</span>.</p></li>
94887
+ </ol>
94888
+ </li>
94889
+
94879
94890
<li><p>Let <var>importMap</var> be an <span>empty import map</span>.</p></li>
94880
94891
94881
94892
<li><p>If <var>settingsObject</var>'s <span data-x="concept-settings-object-global">global
@@ -96187,25 +96198,28 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
96187
96198
agents must use the following implementation: <ref spec=JAVASCRIPT></p>
96188
96199
96189
96200
<ol>
96190
- <li><p>Let <var>settings object</var> be the <span>current settings object</span>.</p></li>
96191
-
96192
- <li><p>Let <var>referencing script</var> be null.</p></li>
96201
+ <li><p>Let <var>moduleMap</var> and <var>referencingScript</var> be null.</p></li>
96193
96202
96194
96203
<li>
96195
96204
<p>If <var>referencingScriptOrModule</var> is not null, then:</p>
96196
96205
96197
96206
<ol>
96198
- <li><p>Set <var>referencing script </var> to
96207
+ <li><p>Set <var>referencingScript </var> to
96199
96208
<var>referencingScriptOrModule</var>.[[HostDefined]].</p></li>
96200
96209
96201
- <li><p>Set <var>settings object</var> to <var>referencing script</var>'s <span>settings
96202
- object</span>.</p></li>
96210
+ <li><p>Set <var>moduleMap</var> to <var>referencingScript</var>'s <span>settings
96211
+ object</span>'s <span data-x="concept-settings-object-module-map">module map</span>.</p></li>
96212
+ </ol>
96213
+ </li>
96203
96214
96204
- <li><p>Set <var>base URL</var> to <var>referencing script</var>'s <span
96205
- data-x="concept-script-base-url">base URL</span>.</p></li>
96215
+ <li>
96216
+ <p>Otherwise:</p>
96217
+
96218
+ <ol>
96219
+ <li><p><span>Assert</span>: there is a <span>current settings object</span>.</p></li>
96206
96220
96207
- <li><p><span>Assert</span>: <var>base URL </var> is not null, as <var>referencing script</var>
96208
- is a <span>classic script</span> or a <span>JavaScript module script </span>.</p></li>
96221
+ <li><p>Set <var>moduleMap </var> to the <span>current settings object</span>'s <span
96222
+ data-x="concept-settings-object-module-map"> module map </span>.</p></li>
96209
96223
</ol>
96210
96224
96211
96225
<div class="example">
@@ -96223,33 +96237,30 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
96223
96237
</div>
96224
96238
</li>
96225
96239
96226
- <li><p>Let <var>moduleMap</var> be <var>settings object</var>'s <span
96227
- data-x="concept-settings-object-module-map">module map</span>.</p></li>
96228
-
96229
96240
<li><p>Let <var>url</var> be the result of <span data-x="resolve a module specifier">resolving a
96230
- module specifier</span> given <var>referencing script </var> and
96241
+ module specifier</span> given <var>referencingScript </var> and
96231
96242
<var>moduleRequest</var>.[[Specifier]].</p></li>
96232
96243
96233
96244
<li><p><span>Assert</span>: the previous step never throws an exception, because <span
96234
- data-x="resolve a module specifier">resolving a module specifier</span> must have been previously
96235
- successful with these same two arguments (either <a
96245
+ data-x="resolve a module specifier">resolving a module specifier</span> must have been
96246
+ previously successful with these same two arguments (either <a
96236
96247
href="#validate-requested-module-specifiers">while creating the corresponding module script</a>,
96237
96248
or in <span>fetch an import() module script graph</span>).</p></li>
96238
96249
96239
96250
<li><p>Let <var>moduleType</var> be the result of running the <span>module type from module
96240
96251
request</span> steps given <var>moduleRequest</var>.</p></li>
96241
96252
96242
- <li><p>Let <var>resolved module script </var> be <var>moduleMap</var>[(<var>url</var>,
96253
+ <li><p>Let <var>resolvedModuleScript </var> be <var>moduleMap</var>[(<var>url</var>,
96243
96254
<var>moduleType</var>)]. (This entry must <span data-x="map exists">exist</span> for us to have
96244
96255
gotten to this point.)</p></li>
96245
96256
96246
- <li><p><span>Assert</span>: <var>resolved module script </var> is a <span>module script</span>
96257
+ <li><p><span>Assert</span>: <var>resolvedModuleScript </var> is a <span>module script</span>
96247
96258
(i.e., is not null or "<code data-x="">fetching</code>").</p></li>
96248
96259
96249
- <li><p><span>Assert</span>: <var>resolved module script </var>'s <span
96260
+ <li><p><span>Assert</span>: <var>resolvedModuleScript </var>'s <span
96250
96261
data-x="concept-script-record">record</span> is not null.</p>
96251
96262
96252
- <li><p>Return <var>resolved module script </var>'s <span
96263
+ <li><p>Return <var>resolvedModuleScript </var>'s <span
96253
96264
data-x="concept-script-record">record</span>.</p></li>
96254
96265
</ol>
96255
96266
@@ -129531,6 +129542,7 @@ INSERT INTERFACES HERE
129531
129542
Neil Rashbrook,
129532
129543
Neil Soiffer,
129533
129544
Nereida Rondon,
129545
+ networkException,
129534
129546
Nicholas Shanks,
129535
129547
Nicholas Stimpson,
129536
129548
Nicholas Zakas,
0 commit comments