Skip to content

Commit bb48543

Browse files
jmdyckljharb
authored andcommitted
Editorial: Consistify early error rules (#3266)
Specifically, eliminate 6 `<p>` elements that give a condition under which early error rules are applied.
1 parent 6e2a6b6 commit bb48543

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

spec.html

+6-18
Original file line numberDiff line numberDiff line change
@@ -20452,16 +20452,12 @@ <h2>Syntax</h2>
2045220452
<emu-clause id="sec-assignment-operators-static-semantics-early-errors">
2045320453
<h1>Static Semantics: Early Errors</h1>
2045420454
<emu-grammar>AssignmentExpression : LeftHandSideExpression `=` AssignmentExpression</emu-grammar>
20455-
<p>If |LeftHandSideExpression| is either an |ObjectLiteral| or an |ArrayLiteral|, the following Early Error rules are applied:</p>
2045620455
<ul>
2045720456
<li>
20458-
|LeftHandSideExpression| must cover an |AssignmentPattern|.
20457+
If |LeftHandSideExpression| is either an |ObjectLiteral| or an |ArrayLiteral|, |LeftHandSideExpression| must cover an |AssignmentPattern|.
2045920458
</li>
20460-
</ul>
20461-
<p>If |LeftHandSideExpression| is neither an |ObjectLiteral| nor an |ArrayLiteral|, the following Early Error rule is applied:</p>
20462-
<ul>
2046320459
<li>
20464-
It is a Syntax Error if AssignmentTargetType of |LeftHandSideExpression| is not ~simple~.
20460+
If |LeftHandSideExpression| is neither an |ObjectLiteral| nor an |ArrayLiteral|, it is a Syntax Error if AssignmentTargetType of |LeftHandSideExpression| is not ~simple~.
2046520461
</li>
2046620462
</ul>
2046720463
<emu-grammar>
@@ -20725,16 +20721,12 @@ <h1>Static Semantics: Early Errors</h1>
2072520721
</li>
2072620722
</ul>
2072720723
<emu-grammar>DestructuringAssignmentTarget : LeftHandSideExpression</emu-grammar>
20728-
<p>If |LeftHandSideExpression| is either an |ObjectLiteral| or an |ArrayLiteral|, the following Early Error rules are applied:</p>
2072920724
<ul>
2073020725
<li>
20731-
|LeftHandSideExpression| must cover an |AssignmentPattern|.
20726+
If |LeftHandSideExpression| is either an |ObjectLiteral| or an |ArrayLiteral|, |LeftHandSideExpression| must cover an |AssignmentPattern|.
2073220727
</li>
20733-
</ul>
20734-
<p>If |LeftHandSideExpression| is neither an |ObjectLiteral| nor an |ArrayLiteral|, the following Early Error rule is applied:</p>
20735-
<ul>
2073620728
<li>
20737-
It is a Syntax Error if AssignmentTargetType of |LeftHandSideExpression| is not ~simple~.
20729+
If |LeftHandSideExpression| is neither an |ObjectLiteral| nor an |ArrayLiteral|, it is a Syntax Error if AssignmentTargetType of |LeftHandSideExpression| is not ~simple~.
2073820730
</li>
2073920731
</ul>
2074020732
</emu-clause>
@@ -21921,16 +21913,12 @@ <h1>Static Semantics: Early Errors</h1>
2192121913
`for` `(` LeftHandSideExpression `of` AssignmentExpression `)` Statement
2192221914
`for` `await` `(` LeftHandSideExpression `of` AssignmentExpression `)` Statement
2192321915
</emu-grammar>
21924-
<p>If |LeftHandSideExpression| is either an |ObjectLiteral| or an |ArrayLiteral|, the following Early Error rules are applied:</p>
2192521916
<ul>
2192621917
<li>
21927-
|LeftHandSideExpression| must cover an |AssignmentPattern|.
21918+
If |LeftHandSideExpression| is either an |ObjectLiteral| or an |ArrayLiteral|, |LeftHandSideExpression| must cover an |AssignmentPattern|.
2192821919
</li>
21929-
</ul>
21930-
<p>If |LeftHandSideExpression| is neither an |ObjectLiteral| nor an |ArrayLiteral|, the following Early Error rule is applied:</p>
21931-
<ul>
2193221920
<li>
21933-
It is a Syntax Error if AssignmentTargetType of |LeftHandSideExpression| is not ~simple~.
21921+
If |LeftHandSideExpression| is neither an |ObjectLiteral| nor an |ArrayLiteral|, it is a Syntax Error if AssignmentTargetType of |LeftHandSideExpression| is not ~simple~.
2193421922
</li>
2193521923
</ul>
2193621924
<emu-grammar>

0 commit comments

Comments
 (0)