Skip to content

Commit

Permalink
Editorial: remove constraints on host-defined AOs that repeat signatu…
Browse files Browse the repository at this point in the history
…re (#3153)
  • Loading branch information
michaelficarra authored and ljharb committed Aug 23, 2023
1 parent bb4d638 commit 68881b6
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -19481,13 +19481,6 @@ <h1>
<dd>It allows hosts to provide property keys and values for the object returned from `import.meta`.</dd>
</dl>

<p>An implementation of HostGetImportMetaProperties must conform to the following requirements:</p>
<ul>
<li>It must return a List whose values are all Records with two fields, [[Key]] and [[Value]].</li>
<li>Each such Record's [[Key]] field must be a property key, i.e., IsPropertyKey must return *true* when applied to it.</li>
<li>Each such Record's [[Value]] field must be an ECMAScript language value.</li>
</ul>

<p>The default implementation of HostGetImportMetaProperties is to return a new empty List.</p>
</emu-clause>

Expand All @@ -19505,11 +19498,6 @@ <h1>

<p>Most hosts will be able to simply define HostGetImportMetaProperties, and leave HostFinalizeImportMeta with its default behaviour. However, HostFinalizeImportMeta provides an "escape hatch" for hosts which need to directly manipulate the object before it is exposed to ECMAScript code.</p>

<p>An implementation of HostFinalizeImportMeta must conform to the following requirements:</p>
<ul>
<li>It must return ~unused~.</li>
</ul>

<p>The default implementation of HostFinalizeImportMeta is to return ~unused~.</p>
</emu-clause>
</emu-clause>
Expand Down Expand Up @@ -28810,10 +28798,6 @@ <h1>
<dt>description</dt>
<dd>It allows host environments to block certain ECMAScript functions which allow developers to interpret and evaluate strings as ECMAScript code.</dd>
</dl>
<p>An implementation of HostEnsureCanCompileStrings must conform to the following requirements:</p>
<ul>
<li>If the returned Completion Record is a normal completion, it must be a normal completion containing ~unused~.</li>
</ul>
<p>The default implementation of HostEnsureCanCompileStrings is to return NormalCompletion(~unused~).</p>
</emu-clause>

Expand Down Expand Up @@ -45704,10 +45688,6 @@ <h1>
<dt>description</dt>
<dd>It allows host environments to track promise rejections.</dd>
</dl>
<p>An implementation of HostPromiseRejectionTracker must conform to the following requirements:</p>
<ul>
<li>It must complete normally (i.e. not return an abrupt completion).</li>
</ul>
<p>The default implementation of HostPromiseRejectionTracker is to return ~unused~.</p>

<emu-note>
Expand Down

0 comments on commit 68881b6

Please sign in to comment.