Skip to content

Commit 3846b66

Browse files
committed
Editorial: Consistify early error rules
Specifically, eliminate 6 `<p>` elements that give a condition under which early error rules are applied.
1 parent 8dafd76 commit 3846b66

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
@@ -20530,16 +20530,12 @@ <h2>Syntax</h2>
2053020530
<emu-clause id="sec-assignment-operators-static-semantics-early-errors">
2053120531
<h1>Static Semantics: Early Errors</h1>
2053220532
<emu-grammar>AssignmentExpression : LeftHandSideExpression `=` AssignmentExpression</emu-grammar>
20533-
<p>If |LeftHandSideExpression| is either an |ObjectLiteral| or an |ArrayLiteral|, the following Early Error rules are applied:</p>
2053420533
<ul>
2053520534
<li>
20536-
|LeftHandSideExpression| must cover an |AssignmentPattern|.
20535+
If |LeftHandSideExpression| is either an |ObjectLiteral| or an |ArrayLiteral|, |LeftHandSideExpression| must cover an |AssignmentPattern|.
2053720536
</li>
20538-
</ul>
20539-
<p>If |LeftHandSideExpression| is neither an |ObjectLiteral| nor an |ArrayLiteral|, the following Early Error rule is applied:</p>
20540-
<ul>
2054120537
<li>
20542-
It is a Syntax Error if AssignmentTargetType of |LeftHandSideExpression| is not ~simple~.
20538+
If |LeftHandSideExpression| is neither an |ObjectLiteral| nor an |ArrayLiteral|, it is a Syntax Error if AssignmentTargetType of |LeftHandSideExpression| is not ~simple~.
2054320539
</li>
2054420540
</ul>
2054520541
<emu-grammar>
@@ -20803,16 +20799,12 @@ <h1>Static Semantics: Early Errors</h1>
2080320799
</li>
2080420800
</ul>
2080520801
<emu-grammar>DestructuringAssignmentTarget : LeftHandSideExpression</emu-grammar>
20806-
<p>If |LeftHandSideExpression| is either an |ObjectLiteral| or an |ArrayLiteral|, the following Early Error rules are applied:</p>
2080720802
<ul>
2080820803
<li>
20809-
|LeftHandSideExpression| must cover an |AssignmentPattern|.
20804+
If |LeftHandSideExpression| is either an |ObjectLiteral| or an |ArrayLiteral|, |LeftHandSideExpression| must cover an |AssignmentPattern|.
2081020805
</li>
20811-
</ul>
20812-
<p>If |LeftHandSideExpression| is neither an |ObjectLiteral| nor an |ArrayLiteral|, the following Early Error rule is applied:</p>
20813-
<ul>
2081420806
<li>
20815-
It is a Syntax Error if AssignmentTargetType of |LeftHandSideExpression| is not ~simple~.
20807+
If |LeftHandSideExpression| is neither an |ObjectLiteral| nor an |ArrayLiteral|, it is a Syntax Error if AssignmentTargetType of |LeftHandSideExpression| is not ~simple~.
2081620808
</li>
2081720809
</ul>
2081820810
</emu-clause>
@@ -22012,16 +22004,12 @@ <h1>Static Semantics: Early Errors</h1>
2201222004
`for` `(` LeftHandSideExpression `of` AssignmentExpression `)` Statement
2201322005
`for` `await` `(` LeftHandSideExpression `of` AssignmentExpression `)` Statement
2201422006
</emu-grammar>
22015-
<p>If |LeftHandSideExpression| is either an |ObjectLiteral| or an |ArrayLiteral|, the following Early Error rules are applied:</p>
2201622007
<ul>
2201722008
<li>
22018-
|LeftHandSideExpression| must cover an |AssignmentPattern|.
22009+
If |LeftHandSideExpression| is either an |ObjectLiteral| or an |ArrayLiteral|, |LeftHandSideExpression| must cover an |AssignmentPattern|.
2201922010
</li>
22020-
</ul>
22021-
<p>If |LeftHandSideExpression| is neither an |ObjectLiteral| nor an |ArrayLiteral|, the following Early Error rule is applied:</p>
22022-
<ul>
2202322011
<li>
22024-
It is a Syntax Error if AssignmentTargetType of |LeftHandSideExpression| is not ~simple~.
22012+
If |LeftHandSideExpression| is neither an |ObjectLiteral| nor an |ArrayLiteral|, it is a Syntax Error if AssignmentTargetType of |LeftHandSideExpression| is not ~simple~.
2202522013
</li>
2202622014
</ul>
2202722015
<emu-grammar>

0 commit comments

Comments
 (0)