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>Link must have completed successfully prior to invoking this method.</p>
26715
26715
</td>
26716
26716
</tr>
26717
+
<tr>
26718
+
<td>
26719
+
GetModuleSourceKind()
26720
+
</td>
26721
+
<td>
26722
+
<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>
26723
+
<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
28971
+
HostGetModuleSourceModuleRecord (
28972
+
_specifier_: an Object,
28973
+
): either a Module Record or ~not-a-source~
28965
28974
</h1>
28966
28975
<dl class="header">
28967
28976
<dt>description</dt>
28968
-
<dd></dd>
28977
+
<dd>Allows hosts to provide the concrete Module Record for a non-ECMA-262 module source object.</dd>
28969
28978
</dl>
28970
28979
28971
-
<p>An implementation of HostGetModuleSourceName must conform to the following requirements:</p>
28980
+
<p>An implementation of HostGetModuleSourceModuleRecord must conform to the following requirements:</p>
28972
28981
<ul>
28973
28982
<li>
28974
-
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%.
28983
+
Defines any host-specific module sources, by returning their concrete Module Record.
28975
28984
</li>
28976
28985
<li>
28977
-
For any object which is not a Module Source Object, returns a throw completion.
28986
+
For all other objects, returns ~not-a-source~.
28978
28987
</li>
28979
28988
</ul>
28989
+
<p>The default implementation of HostGetModuleSourceModuleRecord is to return ~not-a-source~.</p>
0 commit comments