Skip to content

Commit

Permalink
rename base URL to serialized base URL
Browse files Browse the repository at this point in the history
  • Loading branch information
yoavweiss committed Oct 16, 2024
1 parent 79147e5 commit ddc5790
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -106174,7 +106174,8 @@ new PaymentRequest(…); // Allowed to use
<p>A <dfn>specifier resolution record</dfn> is a <span>struct</span>. It has the following <span
data-x="struct item">items</span>:</p>
<dl>
<dt>A <dfn data-x="specifier-resolution-record-base-url">base URL</dfn></dt>
<dt>A <dfn data-x="specifier-resolution-record-serialized-base-url">serialized base
URL</dfn></dt>
<dd>A <span>string</span>-or-null that represents the base URL of the specifier, when one
exists.</dd>

Expand Down Expand Up @@ -108922,7 +108923,7 @@ dictionary <dfn dictionary>PromiseRejectionEventInit</dfn> : <span>EventInit</sp
<var>settingsObject</var>'s <span data-x="concept-settings-object-global">global object</span>'s
<span data-x="concept-global-import-map">import map</span>.</p></li>

<li><p>Let <var>baseURLString</var> be <var>baseURL</var>, <span
<li><p>Let <var>serializedBaseURL</var> be <var>baseURL</var>, <span
data-x="concept-url-serializer">serialized</span>.</p></li>

<li><p>Let <var>asURL</var> be the result of <span>resolving a URL-like module specifier</span>
Expand All @@ -108933,17 +108934,17 @@ dictionary <dfn dictionary>PromiseRejectionEventInit</dfn> : <span>EventInit</sp
non-null; otherwise, <var>specifier</var>.</p></li>

<li><p><span>Add module to resolved module set</span> given <var>settingsObject</var>,
<var>baseURLString</var>, <var>normalizedSpecifier</var>, and <var>asURL</var>.</p></li>
<var>serializedBaseURL</var>, <var>normalizedSpecifier</var>, and <var>asURL</var>.</p></li>

<li>
<p><span data-x="list iterate">For each</span> <var>scopePrefix</var> → <var>scopeImports</var>
of <var>importMap</var>'s <span data-x="concept-import-map-scopes">scopes</span>:</p>

<ol>
<li>
<p>If <var>scopePrefix</var> is <var>baseURLString</var>, or if <var>scopePrefix</var> ends
<p>If <var>scopePrefix</var> is <var>serializedBaseURL</var>, or if <var>scopePrefix</var> ends
with U+002F (/) and <var>scopePrefix</var> is a <span>code unit prefix</span> of
<var>baseURLString</var>, then:</p>
<var>serializedBaseURL</var>, then:</p>

<ol>
<li><p>Let <var>scopeImportsMatch</var> be the result of <span>resolving an imports
Expand Down Expand Up @@ -109398,7 +109399,7 @@ dictionary <dfn dictionary>PromiseRejectionEventInit</dfn> : <span>EventInit</sp
<hr>

<p>To <dfn>add module to resolved module set</dfn> given an <span>environment settings
object</span> <var>settingsObject</var>, a <span>string</span> <var>baseURLString</var>, a
object</span> <var>settingsObject</var>, a <span>string</span> <var>serializedBaseURL</var>, a
<span>string</span> <var>normalizedSpecifier</var>, and a <span>URL</span>-or-null
<var>asURL</var>:</p>

Expand All @@ -109409,9 +109410,10 @@ dictionary <dfn dictionary>PromiseRejectionEventInit</dfn> : <span>EventInit</sp
<li><p>If <var>global</var> does not implement <code>Window</code>, then return.</p></li>

<li><p>Let <var>record</var> be a new <span>specifier resolution record</span>, with <span
data-x="specifier-resolution-record-base-url">base URL</span> set to
<var>baseURLString</var>, <span data-x="specifier-resolution-record-specifier">specifier</span>
set to <var>normalizedSpecifier</var>, and <span
data-x="specifier-resolution-record-serialized-base-url">serialized base URL</span> set to
<var>serializedBaseURL</var>, <span
data-x="specifier-resolution-record-specifier">specifier</span> set to
<var>normalizedSpecifier</var>, and <span
data-x="specifier-resolution-record-as-url">asURL</span> set to <var>asURL</var>.</p></li>

<li><p><span data-x="set append">Append</span> <var>record</var> to <var>global</var>'s
Expand Down Expand Up @@ -109587,9 +109589,10 @@ dictionary <dfn dictionary>PromiseRejectionEventInit</dfn> : <span>EventInit</sp
<ol>
<li>
<p>If <var>scopePrefix</var> is <var>record</var>'s <span
data-x="specifier-resolution-record-base-url">base URL</span>, or if <var>scopePrefix</var>
ends with U+002F (/) and <var>scopePrefix</var> is a <span>code unit prefix</span> of
<var>record</var>'s <span data-x="specifier-resolution-record-base-url">base URL</span>,
data-x="specifier-resolution-record-serialized-base-url">serialized base URL</span>, or if
<var>scopePrefix</var> ends with U+002F (/) and <var>scopePrefix</var> is a <span>code unit
prefix</span> of <var>record</var>'s <span
data-x="specifier-resolution-record-serialized-base-url">serialized base URL</span>,
then:</p>

<ol>
Expand Down

0 comments on commit ddc5790

Please sign in to comment.