@@ -2799,6 +2799,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
2799
2799
<li>The <dfn data-x-href="https://tc39.es/ecma262/#sec-cleanup-finalization-registry">CleanupFinalizationRegistry</dfn> abstract operation</li>
2800
2800
<li>The <dfn data-x-href="https://tc39.es/ecma262/#sec-construct">Construct</dfn> abstract operation</li>
2801
2801
<li>The <dfn data-x-href="https://tc39.es/ecma262/#sec-copydatablockbytes">CopyDataBlockBytes</dfn> abstract operation</li>
2802
+ <li>The <dfn data-x-href="https://tc39.es/ecma262/#sec-createbuiltinfunction">CreateBuiltinFunction</dfn> abstract operation</li>
2802
2803
<li>The <dfn data-x-href="https://tc39.es/ecma262/#sec-createbytedatablock">CreateByteDataBlock</dfn> abstract operation</li>
2803
2804
<li>The <dfn data-x-href="https://tc39.es/ecma262/#sec-createdataproperty">CreateDataProperty</dfn> abstract operation</li>
2804
2805
<li>The <dfn data-x-href="https://tc39.es/ecma262/#sec-detacharraybuffer">DetachArrayBuffer</dfn> abstract operation</li>
@@ -93995,14 +93996,27 @@ dictionary <dfn dictionary>PromiseRejectionEventInit</dfn> : <span>EventInit</sp
93995
93996
world, from the classic-script world.</p>
93996
93997
</dd>
93997
93998
93998
- <dt><code data-x=""><var>url</var> = <span data-x="import.meta">import.meta </span><span data-x="">. url</span></code></dt>
93999
+ <dt><code data-x=""><var>url</var> = <span data-x="import.meta">import.meta</span>. <span data-x="import-meta-url"> url</span></code></dt>
93999
94000
94000
94001
<dd>
94001
94002
<p>Returns the <span data-x="active script">active module script</span>'s <span
94002
94003
data-x="concept-script-base-url">base URL</span>.</p>
94003
94004
94004
94005
<p>This syntax can only be used inside <span data-x="module script">module scripts</span>.</p>
94005
94006
</dd>
94007
+
94008
+ <dt><code data-x=""><var>url</var> = <span data-x="import.meta">import.meta</span>.<span data-x="import-meta-resolve">resolve</span>(<var>specifier</var>)</code></dt>
94009
+
94010
+ <dd>
94011
+ <p>Returns <var>specifier</var>, <span data-x="resolve a module specifier">resolved</span>
94012
+ relative to the <span>active script</span>'s <span data-x="concept-script-base-url">base
94013
+ URL</span>. That is, this returns the URL that would be imported by using <code
94014
+ data-x="import()">import(<var>specifier</var>)</code>.</p>
94015
+
94016
+ <p>Throws a <code>TypeError</code> exception if an invalid specifier is given.</p>
94017
+
94018
+ <p>This syntax can only be used inside <span data-x="module script">module scripts</span>.</p>
94019
+ </dd>
94006
94020
</dl>
94007
94021
94008
94022
<p><span w-nodev>A <dfn>module map</dfn> is a <span data-x="ordered map">map</span> keyed by <span
@@ -94186,17 +94200,40 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
94186
94200
User agents must use the following implementation: <ref spec=JAVASCRIPT></p>
94187
94201
94188
94202
<ol>
94189
- <li><p>Let <var>module script </var> be <var>moduleRecord</var>.[[HostDefined]].</p></li>
94203
+ <li><p>Let <var>moduleScript </var> be <var>moduleRecord</var>.[[HostDefined]].</p></li>
94190
94204
94191
- <li><p>Assert: <var>module script </var>'s <span data-x="concept-script-base-url">base
94192
- URL</span> is not null, as <var>module script </var> is a <span>JavaScript module
94205
+ <li><p>Assert: <var>moduleScript </var>'s <span data-x="concept-script-base-url">base
94206
+ URL</span> is not null, as <var>moduleScript </var> is a <span>JavaScript module
94193
94207
script</span>.</p></li>
94194
94208
94195
- <li><p>Let <var>urlString</var> be <var>module script </var>'s <span
94209
+ <li><p>Let <var>urlString</var> be <var>moduleScript </var>'s <span
94196
94210
data-x="concept-script-base-url">base URL</span>, <span
94197
94211
data-x="concept-url-serializer">serialized</span>.</p></li>
94198
94212
94199
- <li><p>Return « Record { [[Key]]: "url", [[Value]]: <var>urlString</var> } ».</p></li>
94213
+ <li>
94214
+ <p>Let <var>steps</var> be the following steps, given the argument <var>specifier</var>:</p>
94215
+
94216
+ <ol>
94217
+ <li><p>Set <var>specifier</var> to ? <span>ToString</span>(<var>specifier</var>).</p></li>
94218
+
94219
+ <li><p>Let <var>url</var> be the result of <span data-x="resolve a module specifier">resolving
94220
+ a module specifier</span> given <var>moduleScript</var>'s <span
94221
+ data-x="concept-script-base-url">base URL</span> and <var>specifier</var>.</p></li>
94222
+
94223
+ <li><p>If <var>url</var> is failure, then throw a <code>TypeError</code> exception.</p></li>
94224
+
94225
+ <li><p>Return the <span data-x="concept-url-serializer">serialization</span> of
94226
+ <var>url</var>.</p></li>
94227
+ </ol>
94228
+ </li>
94229
+
94230
+ <li><p>Let <var>resolveFunction</var> be ! <span>CreateBuiltinFunction</span>(<var>steps</var>, 1,
94231
+ "<code data-x="">resolve</code>", « »).</p></li>
94232
+
94233
+ <li><p>Return « Record { [[Key]]: "<dfn><code data-x="import-meta-url">url</code></dfn>",
94234
+ [[Value]]: <var>urlString</var> }, Record { [[Key]]: "<dfn><code
94235
+ data-x="import-meta-resolve">resolve</code></dfn>", [[Value]]: <var>resolveFunction</var> }
94236
+ ».</p></li>
94200
94237
</ol>
94201
94238
94202
94239
<h6><dfn>HostImportModuleDynamically</dfn>(<var>referencingScriptOrModule</var>,
0 commit comments