Skip to content

Commit

Permalink
Editorial: simplify definitions of Contains (#1519)
Browse files Browse the repository at this point in the history
... after previous commit. Specifically, when code says:
```
1. If <something>, return *false*.
1. Return *false*.
```
we can drop the first step, because the result is `*false*` either way.
  • Loading branch information
jmdyck authored and ljharb committed May 29, 2020
1 parent 5e33f80 commit 9e48030
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -12792,7 +12792,6 @@ <h1>Static Semantics: Contains</h1>
</emu-note>
<emu-grammar>LiteralPropertyName : IdentifierName</emu-grammar>
<emu-alg>
1. If _symbol_ is a |ReservedWord|, return *false*.
1. Return *false*.
</emu-alg>
</emu-clause>
Expand Down Expand Up @@ -13471,19 +13470,16 @@ <h1>Static Semantics: Contains</h1>
<emu-grammar>MemberExpression : MemberExpression `.` IdentifierName</emu-grammar>
<emu-alg>
1. If |MemberExpression| Contains _symbol_ is *true*, return *true*.
1. If _symbol_ is a |ReservedWord|, return *false*.
1. Return *false*.
</emu-alg>
<emu-grammar>SuperProperty : `super` `.` IdentifierName</emu-grammar>
<emu-alg>
1. If _symbol_ is the |ReservedWord| `super`, return *true*.
1. If _symbol_ is a |ReservedWord|, return *false*.
1. Return *false*.
</emu-alg>
<emu-grammar>CallExpression : CallExpression `.` IdentifierName</emu-grammar>
<emu-alg>
1. If |CallExpression| Contains _symbol_ is *true*, return *true*.
1. If _symbol_ is a |ReservedWord|, return *false*.
1. Return *false*.
</emu-alg>
<emu-grammar>OptionalChain : `?.` IdentifierName</emu-grammar>
Expand Down

0 comments on commit 9e48030

Please sign in to comment.