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
HostGetSupportedAssertions is a host-defined abstract operation that allows host environments to specify which import assertions they support.
223
+
Only assertions with supported keys will be provided to the host.
224
+
</p>
225
+
226
+
<p>The implementation of HostGetSupportedAssertions must conform to the following requrements:</p>
227
+
228
+
<ul>
229
+
<li>It must return a List whose values are all StringValues, each indicating a supported assertion.</li>
230
+
231
+
<li>Each time this operation is called, it must return the same List instance with the same contents.</li>
232
+
233
+
<li>An implementation of HostGetSupportedAssertions must always complete normally (i.e., not return an abrupt completion).</li>
234
+
</ul>
235
+
236
+
<p>The default implementation of HostGetSupportedAssertions is to return an empty List.</p>
237
+
238
+
<emu-notetype=editor>The purpose of requiring the host to specify its supported assertions, rather than passing all assertions to the host and letting it then choose which ones it wants to handle, is to ensure that unsupported assertions are handled in a consistent way across different hosts.</emu-note>
0 commit comments