You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Returns a promise for the evaluation of this module and its dependencies, resolving on successful evaluation or if it has already been evaluated successfully, and rejecting for an evaluation error or if it has already been evaluated unsuccessfully. If the promise is rejected, hosts are expected to handle the promise rejection and rethrow the evaluation error.</p>
26661
26661
<p>Link must have completed successfully prior to invoking this method.</p>
26662
26662
</td>
26663
+
<tr>
26664
+
<td>
26665
+
GetModuleSourceKind()
26666
+
</td>
26667
+
<td>
26668
+
<p>Returns a constant string for each concrete module record that exposes a source representation through their [[ModuleSource]] field, to be used as the return value of the %Symbol.toStringTag% getter on %AbstractModuleSource%.</p>
26669
+
<p>For Module Records that do not have a source representation (currently all ECMA-262-defined Module Records), GetModuleSourceKind() is never called.</p>
): either a normal completion containing a String or a throw completion
28691
+
HostGetModuleSourceModuleRecord (
28692
+
_specifier_: an Object,
28693
+
): either a Module Record or ~not-a-source~
28685
28694
</h1>
28686
28695
<dl class="header">
28687
28696
<dt>description</dt>
28688
-
<dd></dd>
28697
+
<dd>Allows hosts to provide the concrete Module Record for a non-ECMA-262 module source object.</dd>
28689
28698
</dl>
28690
28699
28691
-
<p>An implementation of HostGetModuleSourceName must conform to the following requirements:</p>
28700
+
<p>An implementation of HostGetModuleSourceModuleRecord must conform to the following requirements:</p>
28692
28701
<ul>
28693
28702
<li>
28694
-
For any object that is a Module Source Object, returns a normal completion for a String corresponding to the source record type to be used as the strongly branded return value of the @@toStringTag getter on %AbstractModuleSource%.
28703
+
Defines any host-specific module sources, by returning their concrete Module Record.
28695
28704
</li>
28696
28705
<li>
28697
-
For any object which is not a Module Source Object, returns a throw completion.
28706
+
For all other objects, returns ~not-a-source~.
28698
28707
</li>
28699
28708
</ul>
28709
+
<p>The default implementation of HostGetModuleSourceModuleRecord is to return ~not-a-source~.</p>
0 commit comments