Skip to content

Commit

Permalink
Editorial: Present never-invoked concrete methods more consistently.
Browse files Browse the repository at this point in the history
objectER.CreateImmutableBinding:
Add an emu-alg that asserts it's never invoked.

moduleER.DeleteBinding:
Don't say it "refuses to delete bindings",
because that sounds like it throws an error if invoked,
when in fact it's never invoked.
  • Loading branch information
jmdyck committed May 15, 2020
1 parent 6dc614c commit 8a18223
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -6507,6 +6507,9 @@ <h1>CreateMutableBinding ( _N_, _D_ )</h1>
<emu-clause id="sec-object-environment-records-createimmutablebinding-n-s">
<h1>CreateImmutableBinding ( _N_, _S_ )</h1>
<p>The concrete Environment Record method CreateImmutableBinding is never used within this specification in association with object Environment Records.</p>
<emu-alg>
1. Assert: This method is never invoked.
</emu-alg>
</emu-clause>

<emu-clause id="sec-object-environment-records-initializebinding-n-v">
Expand Down Expand Up @@ -7192,7 +7195,7 @@ <h1>GetBindingValue ( _N_, _S_ )</h1>

<emu-clause id="sec-module-environment-records-deletebinding-n">
<h1>DeleteBinding ( _N_ )</h1>
<p>The concrete Environment Record method DeleteBinding for module Environment Records refuses to delete bindings.</p>
<p>The concrete Environment Record method DeleteBinding for module Environment Records is never invoked.</p>
<emu-alg>
1. Assert: This method is never invoked. See <emu-xref href="#sec-delete-operator-static-semantics-early-errors"></emu-xref>.
</emu-alg>
Expand Down

0 comments on commit 8a18223

Please sign in to comment.